Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d568ae5 authored by Rabin Vincent's avatar Rabin Vincent Committed by Linus Walleij
Browse files

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: default avatarRabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@stericsson.com>
parent ec4a637d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;