X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm%2Fhardware%2Fsa1111.h;h=6aa0a5b75b69dc9bc5f72266f8df5763f9c561eb;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=690e7f487e190c66e403d6920b82484976174139;hpb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;p=linux-2.6.git diff --git a/include/asm-arm/hardware/sa1111.h b/include/asm-arm/hardware/sa1111.h index 690e7f487..6aa0a5b75 100644 --- a/include/asm-arm/hardware/sa1111.h +++ b/include/asm-arm/hardware/sa1111.h @@ -1,5 +1,5 @@ /* - * linux/include/asm-arm/hardware/SA-1111.h + * linux/include/asm-arm/hardware/sa1111.h * * Copyright (C) 2000 John G Dorsey * @@ -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; @@ -567,7 +567,7 @@ struct sa1111_driver { unsigned int devid; int (*probe)(struct sa1111_dev *); int (*remove)(struct sa1111_dev *); - int (*suspend)(struct sa1111_dev *, u32); + int (*suspend)(struct sa1111_dev *, pm_message_t); int (*resume)(struct sa1111_dev *); };