mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] rtc: fix printk of 64-bit res on 32-bit platform
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 <[email protected]> Cc: Alessandro Zummo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
eee44cca66
commit
6a15f46c12
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue