Skip to content

Commit f89487a

Browse files
committed
m68knommu: add missing ioport_map() and ioport_unmap()
Add the missing ioport_map() and ioport_unmap() functions for the non-MMU platforms. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
1 parent 1089c55 commit f89487a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,15 @@ static inline void *ioremap_fullcache(unsigned long physaddr, unsigned long size
179179
*/
180180
#define xlate_dev_kmem_ptr(p) p
181181

182+
static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
183+
{
184+
return (void __iomem *) port;
185+
}
186+
187+
static inline void ioport_unmap(void __iomem *p)
188+
{
189+
}
190+
182191
#endif /* __KERNEL__ */
183192

184193
#endif /* _M68KNOMMU_IO_H */

0 commit comments

Comments
 (0)