OSDN Git Service

gpio: No NULL owner
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 16 Jan 2018 07:29:50 +0000 (08:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Jun 2018 07:54:26 +0000 (09:54 +0200)
commitc4f78b5732bc1392dea7ce401c7fedb91f14e1b9
tree78997d570523a428638e99b2ec95ab1e581476f3
parent81613ccd7935cc8f9068c6d9bfdd4f75ca43f8f6
gpio: No NULL owner

commit 7d18f0a14aa6a0d6bad39111c1fb655f07f71d59 upstream.

Sometimes a GPIO is fetched with NULL as parent device, and
that is just fine. So under these circumstances, avoid using
dev_name() to provide a name for the GPIO line.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Daniel Rosenberg <drosen@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpiolib.c