Skip to content

Commit

Permalink
misc: Fix cs5535 printk warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and Samuel Ortiz committed Jan 14, 2011
1 parent 25a947f commit 7eb1981
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/misc/cs5535-mfgpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,7 @@ static int __devinit cs5535_mfgpt_probe(struct platform_device *pdev)
cs5535_mfgpt_chip.pdev = pdev;
spin_lock_init(&cs5535_mfgpt_chip.lock);

dev_info(&pdev->dev, "region 0x%x - 0x%x reserved\n", res->start,
res->end);
dev_info(&pdev->dev, "reserved resource region %pR\n", res);

/* detect the available timers */
t = scan_timers(&cs5535_mfgpt_chip);
Expand Down

0 comments on commit 7eb1981

Please sign in to comment.