diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-10-17 03:10:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-17 11:18:47 -0400 |
commit | 6a15f46c1272afd3010259067451bf0df04f6511 (patch) | |
tree | 21968f8737159e2ef24c8fef487fb633ba2c9681 /drivers/rtc/rtc-v3020.c | |
parent | eee44cca665aa1a5663e6a00c2bdfc275739dac5 (diff) |
[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 <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>
Diffstat (limited to 'drivers/rtc/rtc-v3020.c')
-rw-r--r-- | drivers/rtc/rtc-v3020.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-v3020.c b/drivers/rtc/rtc-v3020.c index 09b714f1cdc3..3b58d3d5d38a 100644 --- a/drivers/rtc/rtc-v3020.c +++ b/drivers/rtc/rtc-v3020.c | |||
@@ -195,9 +195,9 @@ static int rtc_probe(struct platform_device *pdev) | |||
195 | * are all disabled */ | 195 | * are all disabled */ |
196 | v3020_set_reg(chip, V3020_STATUS_0, 0x0); | 196 | v3020_set_reg(chip, V3020_STATUS_0, 0x0); |
197 | 197 | ||
198 | dev_info(&pdev->dev, "Chip available at physical address 0x%p," | 198 | dev_info(&pdev->dev, "Chip available at physical address 0x%llx," |
199 | "data connected to D%d\n", | 199 | "data connected to D%d\n", |
200 | (void*)pdev->resource[0].start, | 200 | (unsigned long long)pdev->resource[0].start, |
201 | chip->leftshift); | 201 | chip->leftshift); |
202 | 202 | ||
203 | platform_set_drvdata(pdev, chip); | 203 | platform_set_drvdata(pdev, chip); |