Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Jeff Garzik and committed by
Linus Torvalds
6a15f46c eee44cca

+2 -2
+2 -2
drivers/rtc/rtc-v3020.c
··· 195 195 * are all disabled */ 196 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 199 "data connected to D%d\n", 200 - (void*)pdev->resource[0].start, 200 + (unsigned long long)pdev->resource[0].start, 201 201 chip->leftshift); 202 202 203 203 platform_set_drvdata(pdev, chip);