leds: core: Fix devm_classdev_match to reference correct structure
authorDan Murphy <dmurphy@ti.com>
Wed, 2 Oct 2019 12:40:41 +0000 (07:40 -0500)
committerPavel <pavel@ucw.cz>
Sun, 3 Nov 2019 16:38:51 +0000 (17:38 +0100)
Fix the devm_classdev_match pointer initialization to the correct
structure type.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/led-class.c

index 3f04334..4387743 100644 (file)
@@ -403,7 +403,7 @@ EXPORT_SYMBOL_GPL(devm_led_classdev_register_ext);
 
 static int devm_led_classdev_match(struct device *dev, void *res, void *data)
 {
-       struct led_cdev **p = res;
+       struct led_classdev **p = res;
 
        if (WARN_ON(!p || !*p))
                return 0;