Commit 7cfe1395 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Linus Torvalds

gpiolib: a gpio is unsigned, so use %u to print it

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 62154991
...@@ -753,7 +753,7 @@ int gpio_export(unsigned gpio, bool direction_may_change) ...@@ -753,7 +753,7 @@ int gpio_export(unsigned gpio, bool direction_may_change)
struct device *dev; struct device *dev;
dev = device_create(&gpio_class, desc->chip->dev, MKDEV(0, 0), dev = device_create(&gpio_class, desc->chip->dev, MKDEV(0, 0),
desc, ioname ? ioname : "gpio%d", gpio); desc, ioname ? ioname : "gpio%u", gpio);
if (!IS_ERR(dev)) { if (!IS_ERR(dev)) {
status = sysfs_create_group(&dev->kobj, status = sysfs_create_group(&dev->kobj,
&gpio_attr_group); &gpio_attr_group);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment