diff mbox series

[v2,5/6] leds: core: Fix devm_classdev_match to reference correct structure

Message ID 20191002124042.25593-5-dmurphy@ti.com
State Accepted
Commit 4b83cf07d7a4ae70eae2e49086515cad0f42c629
Headers show
Series [v2,1/6] leds: flash: Remove extern from the header file | expand

Commit Message

Dan Murphy Oct. 2, 2019, 12:40 p.m. UTC
Fix the devm_classdev_match pointer initilization to the correct
structure type.

Signed-off-by: Dan Murphy <dmurphy@ti.com>

---
 drivers/leds/led-class.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.22.0.214.g8dca754b1e
diff mbox series

Patch

diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c
index 3f04334d59ee..438774315e6c 100644
--- a/drivers/leds/led-class.c
+++ b/drivers/leds/led-class.c
@@ -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;