diff options
author | Hector Martin <marcan@marcan.st> | 2021-08-23 23:31:22 +0900 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-09-07 08:34:08 +0100 |
commit | 452d07413954ef38951cfd41507b310c3afccd93 (patch) | |
tree | 1ee8fcb59450d791a2fc868f0be41e7866642b26 /drivers/mfd/syscon.c | |
parent | c2f24933a18ac9098a758cb3edfff6503ed5c55d (diff) |
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/syscon.c')
-rw-r--r-- | drivers/mfd/syscon.c | 2 |
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; |