diff options
Diffstat (limited to 'arch/mn10300/include/asm/io.h')
-rw-r--r-- | arch/mn10300/include/asm/io.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/arch/mn10300/include/asm/io.h b/arch/mn10300/include/asm/io.h index 787255da744e..139df8c53de8 100644 --- a/arch/mn10300/include/asm/io.h +++ b/arch/mn10300/include/asm/io.h | |||
@@ -229,7 +229,6 @@ static inline void outsl(unsigned long addr, const void *buffer, int count) | |||
229 | 229 | ||
230 | /* Create a virtual mapping cookie for a PCI BAR (memory or IO) */ | 230 | /* Create a virtual mapping cookie for a PCI BAR (memory or IO) */ |
231 | struct pci_dev; | 231 | struct pci_dev; |
232 | extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); | ||
233 | static inline void pci_iounmap(struct pci_dev *dev, void __iomem *p) | 232 | static inline void pci_iounmap(struct pci_dev *dev, void __iomem *p) |
234 | { | 233 | { |
235 | } | 234 | } |
@@ -251,15 +250,15 @@ static inline void *phys_to_virt(unsigned long address) | |||
251 | /* | 250 | /* |
252 | * Change "struct page" to physical address. | 251 | * Change "struct page" to physical address. |
253 | */ | 252 | */ |
254 | static inline void *__ioremap(unsigned long offset, unsigned long size, | 253 | static inline void __iomem *__ioremap(unsigned long offset, unsigned long size, |
255 | unsigned long flags) | 254 | unsigned long flags) |
256 | { | 255 | { |
257 | return (void *) offset; | 256 | return (void __iomem *) offset; |
258 | } | 257 | } |
259 | 258 | ||
260 | static inline void *ioremap(unsigned long offset, unsigned long size) | 259 | static inline void __iomem *ioremap(unsigned long offset, unsigned long size) |
261 | { | 260 | { |
262 | return (void *) offset; | 261 | return (void __iomem *) offset; |
263 | } | 262 | } |
264 | 263 | ||
265 | /* | 264 | /* |
@@ -267,14 +266,14 @@ static inline void *ioremap(unsigned long offset, unsigned long size) | |||
267 | * area. it's useful if some control registers are in such an area and write | 266 | * area. it's useful if some control registers are in such an area and write |
268 | * combining or read caching is not desirable: | 267 | * combining or read caching is not desirable: |
269 | */ | 268 | */ |
270 | static inline void *ioremap_nocache(unsigned long offset, unsigned long size) | 269 | static inline void __iomem *ioremap_nocache(unsigned long offset, unsigned long size) |
271 | { | 270 | { |
272 | return (void *) (offset | 0x20000000); | 271 | return (void __iomem *) (offset | 0x20000000); |
273 | } | 272 | } |
274 | 273 | ||
275 | #define ioremap_wc ioremap_nocache | 274 | #define ioremap_wc ioremap_nocache |
276 | 275 | ||
277 | static inline void iounmap(void *addr) | 276 | static inline void iounmap(void __iomem *addr) |
278 | { | 277 | { |
279 | } | 278 | } |
280 | 279 | ||