Skip to content

Commit

Permalink
[PATCH] rtc: fix printk of 64-bit res on 32-bit platform
Browse files Browse the repository at this point in the history
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 <jeff@garzik.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jeff Garzik authored and Linus Torvalds committed Oct 17, 2006
1 parent eee44cc commit 6a15f46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/rtc/rtc-v3020.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ static int rtc_probe(struct platform_device *pdev)
* 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);
Expand Down

0 comments on commit 6a15f46

Please sign in to comment.