Skip to content

Commit a000dfc

Browse files
committed
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>
1 parent 9aa59ca commit a000dfc

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎arch/m68k/include/asm/io_mm.h‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,13 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int
510510
*/
511511
#define xlate_dev_kmem_ptr(p) p
512512

513-
#define ioport_map(port, nr) ((void __iomem *)(port))
513+
static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
514+
{
515+
return (void __iomem *) port;
516+
}
517+
518+
static inline void ioport_unmap(void __iomem *p)
519+
{
520+
}
514521

515522
#endif /* _IO_H */

0 commit comments

Comments
 (0)