X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fleds%2Fled-class.c;h=f704391d57a859404fdf06f87f194ce804aa3f25;hb=855ff900b8605df2b9ea309534cd2f02dc0c4cb8;hp=2e495ff678562dc95da4dfd621c3be73cbce17ac;hpb=7d900724913cb293620a05c5a3134710db95d0d9;p=linux-2.6-microblaze.git diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c index 2e495ff67856..f704391d57a8 100644 --- a/drivers/leds/led-class.c +++ b/drivers/leds/led-class.c @@ -285,10 +285,6 @@ struct led_classdev *__must_check devm_of_led_get(struct device *dev, if (!dev) return ERR_PTR(-EINVAL); - /* Not using device tree? */ - if (!IS_ENABLED(CONFIG_OF) || !dev->of_node) - return ERR_PTR(-ENOTSUPP); - led = of_led_get(dev->of_node, index); if (IS_ERR(led)) return led; @@ -513,7 +509,7 @@ static int devm_led_classdev_match(struct device *dev, void *res, void *data) /** * devm_led_classdev_unregister() - resource managed led_classdev_unregister() - * @parent: The device to unregister. + * @dev: The device to unregister. * @led_cdev: the led_classdev structure for this device. */ void devm_led_classdev_unregister(struct device *dev,