[PATCH] of: address: implement dummy iounmap

Ahmad Fatoum a.fatoum at pengutronix.de
Tue Apr 22 00:56:20 PDT 2025


From: Ahmad Fatoum <a.fatoum at barebox.org>

of_iomap doesn't do any actual mapping, just base address computation,
so it makes sense for iounmap to be a no-op to make porting kernel code
easier.

Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
---
 include/of_address.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/of_address.h b/include/of_address.h
index 4e5faf6f7783..9bf5710c5ee3 100644
--- a/include/of_address.h
+++ b/include/of_address.h
@@ -56,6 +56,7 @@ extern struct device_node *of_find_matching_node_by_address(
 	struct device_node *from, const struct of_device_id *matches,
 	u64 base_address);
 extern void __iomem *of_iomap(struct device_node *np, int index);
+static inline void iounmap(void __iomem *addr) { }
 
 extern int of_dma_get_range(struct device_node *np, u64 *dma_addr, u64 *paddr,
 			    u64 *size);
-- 
2.39.5




More information about the barebox mailing list