diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2015-10-20 11:31:54 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-02-09 11:09:30 +0100 |
commit | 34ffd85d9c46cde3dc987cac82bff370a937ac4b (patch) | |
tree | 35f44623a855c33a483bb8eb4edabd13d2d1526f /drivers/gpio/gpiolib.c | |
parent | gpio: make the gpiochip a real device (diff) | |
download | linux-34ffd85d9c46cde3dc987cac82bff370a937ac4b.tar.xz linux-34ffd85d9c46cde3dc987cac82bff370a937ac4b.zip |
gpio: refer to gpio device in prints and debugfs
We use the new struct device inside gpio_chip to related debug
prints and warnings, and we also add it to the debugfs dump.
Cc: Johan Hovold <johan@kernel.org>
Cc: Michael Welling <mwelling@ieee.org>
Cc: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r-- | drivers/gpio/gpiolib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 3a073ab5e863..4b94e31a50af 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -304,8 +304,8 @@ static int gpiochip_set_desc_names(struct gpio_chip *gc) gpio = gpio_name_to_desc(gc->names[i]); if (gpio) - dev_warn(gc->parent, "Detected name collision for " - "GPIO name '%s'\n", + dev_warn(&gc->gpiodev->dev, + "Detected name collision for GPIO name '%s'\n", gc->names[i]); } @@ -528,7 +528,7 @@ void gpiochip_remove(struct gpio_chip *chip) spin_unlock_irqrestore(&gpio_lock, flags); if (requested) - dev_crit(chip->parent, + dev_crit(&chip->gpiodev->dev, "REMOVING GPIOCHIP WITH GPIOS STILL REQUESTED\n"); /* FIXME: need to be moved to gpio_device and held there */ |