From: Hector Martin Date: Mon, 23 Aug 2021 14:31:22 +0000 (+0900) Subject: mfd: syscon: Use of_iomap() instead of ioremap() X-Git-Tag: v5.15-rc1~70^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=452d07413954ef38951cfd41507b310c3afccd93;p=thirdparty%2Fkernel%2Flinux.git mfd: syscon: Use of_iomap() instead of ioremap() This automatically selects between ioremap() and ioremap_np() on platforms that require it, such as Apple SoCs. Signed-off-by: Hector Martin Acked-by: Arnd Bergmann Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index 765c0210cb528..191fdb87c424d 100644 --- a/drivers/mfd/syscon.c +++ b/drivers/mfd/syscon.c @@ -60,7 +60,7 @@ static struct syscon *of_syscon_register(struct device_node *np, bool check_clk) goto err_map; } - base = ioremap(res.start, resource_size(&res)); + base = of_iomap(np, 0); if (!base) { ret = -ENOMEM; goto err_map;