Skip to content

Commit 39c9049

Browse files
MrVanBartosz Golaszewski
authored andcommitted
gpiolib: use dev_err() when gpiod_configure_flags failed
When gpio-ranges property was missed to be added in the gpio node, using dev_err() to show an error message will helping to locate issues easier. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 9164d67 commit 39c9049

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpio/gpiolib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4237,7 +4237,7 @@ struct gpio_desc *gpiod_find_and_request(struct device *consumer,
42374237
ret = gpiod_configure_flags(desc, con_id, lookupflags, flags);
42384238
if (ret < 0) {
42394239
gpiod_put(desc);
4240-
dev_dbg(consumer, "setup of GPIO %s failed\n", name);
4240+
dev_err(consumer, "setup of GPIO %s failed: %d\n", name, ret);
42414241
return ERR_PTR(ret);
42424242
}
42434243

0 commit comments

Comments
 (0)