diff options
author | Joe Perches <joe@perches.com> | 2010-12-20 05:26:19 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-01-14 06:38:10 -0500 |
commit | 7eb19812eead8d0faf30682b69970b36dc02e570 (patch) | |
tree | 33f4f1acf542fc63e094bddc84a3c5dfaa8f7aad /drivers | |
parent | 25a947f805b4132b69f2561589e17a0fe45552b6 (diff) |
misc: Fix cs5535 printk warnings
drivers/misc/cs5535-mfgpt.c: In function 'cs5535_mfgpt_probe':
drivers/misc/cs5535-mfgpt.c:320: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
drivers/misc/cs5535-mfgpt.c:320: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'
Use vsprintf extension %pR to format resource.
Original-patch-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/misc/cs5535-mfgpt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/cs5535-mfgpt.c b/drivers/misc/cs5535-mfgpt.c index 26693060b29b..d02d302ee6d5 100644 --- a/drivers/misc/cs5535-mfgpt.c +++ b/drivers/misc/cs5535-mfgpt.c | |||
@@ -317,8 +317,7 @@ static int __devinit cs5535_mfgpt_probe(struct platform_device *pdev) | |||
317 | cs5535_mfgpt_chip.pdev = pdev; | 317 | cs5535_mfgpt_chip.pdev = pdev; |
318 | spin_lock_init(&cs5535_mfgpt_chip.lock); | 318 | spin_lock_init(&cs5535_mfgpt_chip.lock); |
319 | 319 | ||
320 | dev_info(&pdev->dev, "region 0x%x - 0x%x reserved\n", res->start, | 320 | dev_info(&pdev->dev, "reserved resource region %pR\n", res); |
321 | res->end); | ||
322 | 321 | ||
323 | /* detect the available timers */ | 322 | /* detect the available timers */ |
324 | t = scan_timers(&cs5535_mfgpt_chip); | 323 | t = scan_timers(&cs5535_mfgpt_chip); |