From: Jeff Garzik With 64-bit resources on 32-bit platforms, the resource address might be larger than a void*. Fix printk to work regardless of resource size. Signed-off-by: Jeff Garzik Cc: Alessandro Zummo Signed-off-by: Andrew Morton --- drivers/rtc/rtc-v3020.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/rtc/rtc-v3020.c~rtc-fix-printk-of-64-bit-res-on-32-bit-platform drivers/rtc/rtc-v3020.c --- a/drivers/rtc/rtc-v3020.c~rtc-fix-printk-of-64-bit-res-on-32-bit-platform +++ a/drivers/rtc/rtc-v3020.c @@ -195,9 +195,9 @@ static int rtc_probe(struct platform_dev * are all disabled */ v3020_set_reg(chip, V3020_STATUS_0, 0x0); - dev_info(&pdev->dev, "Chip available at physical address 0x%p," + dev_info(&pdev->dev, "Chip available at physical address 0x%llx," "data connected to D%d\n", - (void*)pdev->resource[0].start, + (unsigned long long)pdev->resource[0].start, chip->leftshift); platform_set_drvdata(pdev, chip); _