Skip to content

Commit

Permalink
leds: core: Fix devm_classdev_match to reference correct structure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Murphy authored and Pavel committed Nov 3, 2019
1 parent ec28a8c commit 4b83cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/led-class.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4b83cf0

Please sign in to comment.