Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a283fc86 authored by David Collins's avatar David Collins
Browse files

regulator: cpr-regulator: correct format string for physical addresses



Change the format string used when printing physical addresses
from %x to %pa.  This ensures that the driver can be compiled
when type phys_addr_t is larger than type int.

Change-Id: I004f58236b716731d366d6fdac8936d9beed33e2
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent f009e46e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1872,12 +1872,12 @@ static int cpr_efuse_init(struct platform_device *pdev,
	cpr_vreg->efuse_addr = res->start;
	len = res->end - res->start + 1;

	pr_info("efuse_addr = 0x%x (len=0x%x)\n", res->start, len);
	pr_info("efuse_addr = %pa (len=0x%x)\n", &res->start, len);

	cpr_vreg->efuse_base = ioremap(cpr_vreg->efuse_addr, len);
	if (!cpr_vreg->efuse_base) {
		pr_err("Unable to map efuse_addr 0x%08x\n",
				cpr_vreg->efuse_addr);
		pr_err("Unable to map efuse_addr %pa\n",
				&cpr_vreg->efuse_addr);
		return -EINVAL;
	}