Commit 93da2879 authored by Russell King's avatar Russell King Committed by Linus Torvalds
Browse files

Provide dummy devm_ioport_* if !HAS_IOPORT

Provide an dummy implementation of devm_ioport_map() and
devm_ioport_unmap() to allow drivers (eg, pata_platform) to build for
platforms where CONFIG_NO_IOPORT is selected.
Signed-off-by: default avatarRussell King <>
Cc: Alan Cox <>
Cc: Jeff Garzik <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 30f3deee
......@@ -33,9 +33,22 @@ int ioremap_page_range(unsigned long addr, unsigned long end,
* Managed iomap interface
void __iomem * devm_ioport_map(struct device *dev, unsigned long port,
unsigned int nr);
void devm_ioport_unmap(struct device *dev, void __iomem *addr);
static inline void __iomem *devm_ioport_map(struct device *dev,
unsigned long port,
unsigned int nr)
return NULL;
static inline void devm_ioport_unmap(struct device *dev, void __iomem *addr)
void __iomem * devm_ioremap(struct device *dev, unsigned long offset,
unsigned long size);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment