summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorHector Martin <marcan@marcan.st>2021-08-23 23:31:22 +0900
committerLee Jones <lee.jones@linaro.org>2021-09-07 08:34:08 +0100
commit452d07413954ef38951cfd41507b310c3afccd93 (patch)
tree1ee8fcb59450d791a2fc868f0be41e7866642b26 /drivers/mfd
parentc2f24933a18ac9098a758cb3edfff6503ed5c55d (diff)
downloadlinux-452d07413954ef38951cfd41507b310c3afccd93.tar.gz
linux-452d07413954ef38951cfd41507b310c3afccd93.tar.xz
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;