aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2014-09-09 05:32:44 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2014-09-28 05:36:33 -0400
commita000dfc2ab201ffc43fbe925a522adeebe51f6f3 (patch)
tree927430556b8fd733c9e1396bedb2f014df00f126 /arch/m68k
parent9aa59cacdf22de9127d147de9523c1a0f832da48 (diff)
m68k: Add missing ioport_unmap()
drivers/net/ethernet/cirrus/cs89x0.c: In function ‘cs89x0_ioport_probe’: drivers/net/ethernet/cirrus/cs89x0.c:1629: error: implicit declaration of function ‘ioport_unmap’ Add the missing ioport_unmap() implementation, and convert ioport_map() from a macro to a static inline function while we're at it (both copied from asm-generic). Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/include/asm/io_mm.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_mm.h
index ffdf54f44bc6..8955b40a5dc4 100644
--- a/arch/m68k/include/asm/io_mm.h
+++ b/arch/m68k/include/asm/io_mm.h
@@ -510,6 +510,13 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int
510 */ 510 */
511#define xlate_dev_kmem_ptr(p) p 511#define xlate_dev_kmem_ptr(p) p
512 512
513#define ioport_map(port, nr) ((void __iomem *)(port)) 513static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
514{
515 return (void __iomem *) port;
516}
517
518static inline void ioport_unmap(void __iomem *p)
519{
520}
514 521
515#endif /* _IO_H */ 522#endif /* _IO_H */