summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorHector Martin <marcan@marcan.st>2021-08-23 16:31:22 +0200
committerLee Jones <lee.jones@linaro.org>2021-09-07 09:34:08 +0200
commit452d07413954ef38951cfd41507b310c3afccd93 (patch)
tree1ee8fcb59450d791a2fc868f0be41e7866642b26 /drivers/mfd
parentdt-bindings: mfd: Add Broadcom CRU (diff)
downloadlinux-452d07413954ef38951cfd41507b310c3afccd93.tar.xz
linux-452d07413954ef38951cfd41507b310c3afccd93.zip
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 <marcan@marcan.st> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/syscon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index 765c0210cb52..191fdb87c424 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;