Commit 452d0741 authored by Hector Martin's avatar Hector Martin Committed by Lee Jones
Browse files

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: default avatarHector Martin <marcan@marcan.st>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent c2f24933
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;