Commit 4b83cf07 authored by Dan Murphy's avatar Dan Murphy Committed by Pavel

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: default avatarDan Murphy <dmurphy@ti.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent ec28a8cf
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment