diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2010-12-08 06:37:54 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@stericsson.com> | 2010-12-08 13:24:50 +0100 |
commit | 8d568ae5362c00c5b0b8e61bceb1829c8051002e (patch) | |
tree | 09220742cbf8507107e08205bd1142a36bccade9 /arch/arm/plat-nomadik/gpio.c | |
parent | ux500: fix uncompressor UART address for U5500 (diff) | |
download | linux-8d568ae5362c00c5b0b8e61bceb1829c8051002e.tar.xz linux-8d568ae5362c00c5b0b8e61bceb1829c8051002e.zip |
nomadik-gpio: use dev name if no name is specified
Platforms may choose not to provide an additional name for the GPIO
block.
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Diffstat (limited to 'arch/arm/plat-nomadik/gpio.c')
-rw-r--r-- | arch/arm/plat-nomadik/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-nomadik/gpio.c b/arch/arm/plat-nomadik/gpio.c index 5fc8e4d8cd2a..eda4e3a11a3d 100644 --- a/arch/arm/plat-nomadik/gpio.c +++ b/arch/arm/plat-nomadik/gpio.c @@ -672,7 +672,7 @@ static int __devinit nmk_gpio_probe(struct platform_device *dev) chip = &nmk_chip->chip; chip->base = pdata->first_gpio; - chip->label = pdata->name; + chip->label = pdata->name ?: dev_name(&dev->dev); chip->dev = &dev->dev; chip->owner = THIS_MODULE; |