Skip to content

Commit

Permalink
m68k: Add missing ioport_unmap()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
geertu committed Sep 28, 2014
1 parent 9aa59ca commit a000dfc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion arch/m68k/include/asm/io_mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,13 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int
*/
#define xlate_dev_kmem_ptr(p) p

#define ioport_map(port, nr) ((void __iomem *)(port))
static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
{
return (void __iomem *) port;
}

static inline void ioport_unmap(void __iomem *p)
{
}

#endif /* _IO_H */

0 comments on commit a000dfc

Please sign in to comment.