[POWERPC] Pointers marked as __iomem do not need to be volatile
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Dec 2007 04:23:48 +0000 (15:23 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 21 Dec 2007 11:14:07 +0000 (22:14 +1100)
Fixes this warning:

arch/powerpc/platforms/powermac/pci.c: In function 'u3_ht_cfg_access':
arch/powerpc/platforms/powermac/pci.c:354: warning: return discards qualifiers from pointer target type
arch/powerpc/platforms/powermac/pci.c:358: warning: return discards qualifiers from pointer target type

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/pci-bridge.h

index 4aeef7f3d766b65d2f973583bc6b09f650680b1c..9b16d3b171699f41c00af244bb4034fb873f3b06 100644 (file)
@@ -75,8 +75,8 @@ struct pci_controller {
 #endif
 
        struct pci_ops *ops;
-       volatile unsigned int __iomem *cfg_addr;
-       volatile void __iomem *cfg_data;
+       unsigned int __iomem *cfg_addr;
+       void __iomem *cfg_data;
 
 #ifndef CONFIG_PPC64
        /*