power: supply: core: Fix power_supply_init_attrs() stub
[linux-2.6-microblaze.git] / drivers / leds / leds-gpio.c
index 710c319..83fcd7b 100644 (file)
@@ -172,6 +172,8 @@ static struct gpio_leds_priv *gpio_leds_create(struct device *dev)
                led.gpiod = devm_fwnode_gpiod_get(dev, child, NULL, GPIOD_ASIS,
                                                  NULL);
                if (IS_ERR(led.gpiod)) {
+                       dev_err_probe(dev, PTR_ERR(led.gpiod), "Failed to get GPIO '%pfw'\n",
+                                     child);
                        fwnode_handle_put(child);
                        return ERR_CAST(led.gpiod);
                }