X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm%2Fhardware%2Fsa1111.h;h=8fd4f528c38df1c5a3e3ad14ebfdee066dcb7e80;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=690e7f487e190c66e403d6920b82484976174139;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-arm/hardware/sa1111.h b/include/asm-arm/hardware/sa1111.h index 690e7f487..8fd4f528c 100644 --- a/include/asm-arm/hardware/sa1111.h +++ b/include/asm-arm/hardware/sa1111.h @@ -49,8 +49,8 @@ */ #define __CCREG(x) __REGP(SA1111_VBASE + (x)) -#define sa1111_writel(val,addr) ({ *(volatile unsigned int *)(addr) = (val); }) -#define sa1111_readl(addr) (*(volatile unsigned int *)(addr)) +#define sa1111_writel(val,addr) __raw_writel(val, addr) +#define sa1111_readl(addr) __raw_readl(addr) /* * System Bus Interface (SBI) @@ -551,7 +551,7 @@ struct sa1111_dev { struct device dev; unsigned int devid; struct resource res; - void *mapbase; + void __iomem *mapbase; unsigned int skpcr_mask; unsigned int irq[6]; u64 dma_mask;