aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mn10300/include/asm/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mn10300/include/asm/io.h')
-rw-r--r--arch/mn10300/include/asm/io.h17
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) */
231struct pci_dev; 231struct pci_dev;
232extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max);
233static inline void pci_iounmap(struct pci_dev *dev, void __iomem *p) 232static 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 */
254static inline void *__ioremap(unsigned long offset, unsigned long size, 253static 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
260static inline void *ioremap(unsigned long offset, unsigned long size) 259static 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 */
270static inline void *ioremap_nocache(unsigned long offset, unsigned long size) 269static 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
277static inline void iounmap(void *addr) 276static inline void iounmap(void __iomem *addr)
278{ 277{
279} 278}
280 279