chip->dev should be initialized at this point so we can use dev_* here instead of pr_warn. Signed-off-by: Markus Pargmann <mpa@xxxxxxxxxxxxxx> --- drivers/gpio/gpiolib-of.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 1911b692f735..48a7579dd62d 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -227,8 +227,8 @@ static void of_gpiochip_scan_gpios(struct gpio_chip *chip) if (of_property_read_bool(np, "gpio-hog")) { if (!dflags) { - pr_warn("GPIO line %d (%s): no hogging state specified, bailing out\n", - desc_to_gpio(desc), np->name); + dev_warn(chip->dev, "GPIO line %d (%s): no hogging state specified, bailing out\n", + desc_to_gpio(desc), np->name); continue; } -- 2.4.6 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html