Skip to content

Commit 4b83cf0

Browse files
Dan Murphypavelmachek
authored andcommitted
leds: core: Fix devm_classdev_match to reference correct structure
Fix the devm_classdev_match pointer initialization to the correct structure type. Signed-off-by: Dan Murphy <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
1 parent ec28a8c commit 4b83cf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/leds/led-class.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ EXPORT_SYMBOL_GPL(devm_led_classdev_register_ext);
403403

404404
static int devm_led_classdev_match(struct device *dev, void *res, void *data)
405405
{
406-
struct led_cdev **p = res;
406+
struct led_classdev **p = res;
407407

408408
if (WARN_ON(!p || !*p))
409409
return 0;

0 commit comments

Comments
 (0)