diff options
author | Joe Perches <joe@perches.com> | 2010-12-20 05:28:40 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-01-14 06:38:11 -0500 |
commit | 1db0b427eec6f18477fa95aab8edf6176dffcea4 (patch) | |
tree | 54cfe08f22f5b17e902e471e1b60ddfa2022ac73 /drivers/gpio | |
parent | 7eb19812eead8d0faf30682b69970b36dc02e570 (diff) |
gpio: Fix cs5535 printk warnings
drivers/gpio/cs5535-gpio.c: In function 'cs5535_gpio_probe':
drivers/gpio/cs5535-gpio.c:269: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
drivers/gpio/cs5535-gpio.c:269: 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/gpio')
-rw-r--r-- | drivers/gpio/cs5535-gpio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/cs5535-gpio.c b/drivers/gpio/cs5535-gpio.c index f9813ef48534..0d05ea7d499b 100644 --- a/drivers/gpio/cs5535-gpio.c +++ b/drivers/gpio/cs5535-gpio.c | |||
@@ -329,8 +329,7 @@ static int __devinit cs5535_gpio_probe(struct platform_device *pdev) | |||
329 | cs5535_gpio_chip.pdev = pdev; | 329 | cs5535_gpio_chip.pdev = pdev; |
330 | spin_lock_init(&cs5535_gpio_chip.lock); | 330 | spin_lock_init(&cs5535_gpio_chip.lock); |
331 | 331 | ||
332 | dev_info(&pdev->dev, "region 0x%x - 0x%x reserved\n", | 332 | dev_info(&pdev->dev, "reserved resource region %pR\n", res); |
333 | res->start, res->end); | ||
334 | 333 | ||
335 | /* mask out reserved pins */ | 334 | /* mask out reserved pins */ |
336 | mask &= 0x1F7FFFFF; | 335 | mask &= 0x1F7FFFFF; |