浏览代码

[POWERPC] Pointers marked as __iomem do not need to be volatile

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>
Stephen Rothwell 17 年之前
父节点
当前提交
70fbb93883
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/asm-powerpc/pci-bridge.h

+ 2 - 2
include/asm-powerpc/pci-bridge.h

@@ -75,8 +75,8 @@ struct pci_controller {
 #endif
 #endif
 
 
 	struct pci_ops *ops;
 	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
 #ifndef CONFIG_PPC64
 	/*
 	/*