mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] of: address: implement dummy iounmap
@ 2025-04-22  7:56 Ahmad Fatoum
  2025-04-22  9:20 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-04-22  7:56 UTC (permalink / raw)
  To: barebox

From: Ahmad Fatoum <a.fatoum@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@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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-22 10:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-22  7:56 [PATCH] of: address: implement dummy iounmap Ahmad Fatoum
2025-04-22  9:20 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox