Geert Uytterhoeven
2014-09-14 09:45:25 UTC
drivers/net/ethernet/cirrus/cs89x0.c: In function =E2=80=98cs89x0_iopor=
t_probe=E2=80=99:
drivers/net/ethernet/cirrus/cs89x0.c:1629: error: implicit declaration =
of function =E2=80=98ioport_unmap=E2=80=99
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 <***@linux-m68k.org>
---
arch/m68k/include/asm/io_mm.h | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_m=
m.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 __iom=
em *dst, const void *src, int
*/
#define xlate_dev_kmem_ptr(p) p
=20
-#define ioport_map(port, nr) ((void __iomem *)(port))
+static inline void __iomem *ioport_map(unsigned long port, unsigned in=
t nr)
+{
+ return (void __iomem *) port;
+}
+
+static inline void ioport_unmap(void __iomem *p)
+{
+}
=20
#endif /* _IO_H */
--=20
1.9.1
t_probe=E2=80=99:
drivers/net/ethernet/cirrus/cs89x0.c:1629: error: implicit declaration =
of function =E2=80=98ioport_unmap=E2=80=99
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 <***@linux-m68k.org>
---
arch/m68k/include/asm/io_mm.h | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_m=
m.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 __iom=
em *dst, const void *src, int
*/
#define xlate_dev_kmem_ptr(p) p
=20
-#define ioport_map(port, nr) ((void __iomem *)(port))
+static inline void __iomem *ioport_map(unsigned long port, unsigned in=
t nr)
+{
+ return (void __iomem *) port;
+}
+
+static inline void ioport_unmap(void __iomem *p)
+{
+}
=20
#endif /* _IO_H */
--=20
1.9.1