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

Commit 504f97f8 authored by Samuel Ortiz's avatar Samuel Ortiz Committed by Samuel Ortiz
Browse files

mfd: Fix htc-egpio compile warning



resource_size_t can be a 64 bits value. Since this is just a printk, we'll
cast it to a u32.

Signed-off-by: default avatarSamuel Ortiz <sameo@openedhand.com>
parent f98a0bd0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -289,7 +289,7 @@ static int __init egpio_probe(struct platform_device *pdev)
	ei->base_addr = ioremap_nocache(res->start, res->end - res->start);
	ei->base_addr = ioremap_nocache(res->start, res->end - res->start);
	if (!ei->base_addr)
	if (!ei->base_addr)
		goto fail;
		goto fail;
	pr_debug("EGPIO phys=%08x virt=%p\n", res->start, ei->base_addr);
	pr_debug("EGPIO phys=%08x virt=%p\n", (u32)res->start, ei->base_addr);


	if ((pdata->bus_width != 16) && (pdata->bus_width != 32))
	if ((pdata->bus_width != 16) && (pdata->bus_width != 32))
		goto fail;
		goto fail;