Char: cyclades, cy_readX/writeX cleanup
cyclades, cy_readX/writeX cleanup - cy_readX are placeholders for readX, remove it - move cy_writeX macros into do {} while(0) to be safe Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
ffa68e79ff
commit
db05c3b1dd
@ -539,13 +539,9 @@ struct cyclades_chip {
|
||||
* (required to support Alpha systems) *
|
||||
***************************************/
|
||||
|
||||
#define cy_writeb(port,val) {writeb((val),(port)); mb();}
|
||||
#define cy_writew(port,val) {writew((val),(port)); mb();}
|
||||
#define cy_writel(port,val) {writel((val),(port)); mb();}
|
||||
|
||||
#define cy_readb(port) readb(port)
|
||||
#define cy_readw(port) readw(port)
|
||||
#define cy_readl(port) readl(port)
|
||||
#define cy_writeb(port,val) do { writeb((val), (port)); mb(); } while (0)
|
||||
#define cy_writew(port,val) do { writew((val), (port)); mb(); } while (0)
|
||||
#define cy_writel(port,val) do { writel((val), (port)); mb(); } while (0)
|
||||
|
||||
/*
|
||||
* Statistics counters
|
||||
|
Reference in New Issue
Block a user