Skip to content

Commit

Permalink
mfd: Fix htc-egpio compile warning
Browse files Browse the repository at this point in the history
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: Samuel Ortiz <sameo@openedhand.com>
  • Loading branch information
Samuel Ortiz authored and Samuel Ortiz committed Oct 19, 2008
1 parent f98a0bd commit 504f97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/htc-egpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ static int __init egpio_probe(struct platform_device *pdev)
ei->base_addr = ioremap_nocache(res->start, res->end - res->start);
if (!ei->base_addr)
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))
goto fail;
Expand Down

0 comments on commit 504f97f

Please sign in to comment.