Skip to content

Commit

Permalink
[POWERPC] Pointers marked as __iomem do not need to be volatile
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Dec 21, 2007
1 parent b91bdd1 commit 70fbb93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-powerpc/pci-bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
/*
Expand Down

0 comments on commit 70fbb93

Please sign in to comment.