mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
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>
This commit is contained in:
parent
7eb19812ee
commit
1db0b427ee
1 changed files with 1 additions and 2 deletions
|
@ -329,8 +329,7 @@ static int __devinit cs5535_gpio_probe(struct platform_device *pdev)
|
||||||
cs5535_gpio_chip.pdev = pdev;
|
cs5535_gpio_chip.pdev = pdev;
|
||||||
spin_lock_init(&cs5535_gpio_chip.lock);
|
spin_lock_init(&cs5535_gpio_chip.lock);
|
||||||
|
|
||||||
dev_info(&pdev->dev, "region 0x%x - 0x%x reserved\n",
|
dev_info(&pdev->dev, "reserved resource region %pR\n", res);
|
||||||
res->start, res->end);
|
|
||||||
|
|
||||||
/* mask out reserved pins */
|
/* mask out reserved pins */
|
||||||
mask &= 0x1F7FFFFF;
|
mask &= 0x1F7FFFFF;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue