]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpio/gpiolib.c
gpio: No NULL owner
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 16 Jan 2018 07:29:50 +0000 (08:29 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 5 Sep 2018 08:30:45 +0000 (10:30 +0200)
commit022fcdfd59d854a5bcf526da75e5aeb74f3fd8dc
treede969cda08d6a92f633717477a9f65142d58cf9e
parenta32ae25d3e3daefb1f98dda0b9d9afe67de67ef3
gpio: No NULL owner

BugLink: http://bugs.launchpad.net/bugs/1790188
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/gpio/gpiolib.c