diff options
author | Dan Murphy <dmurphy@ti.com> | 2019-10-02 15:40:41 +0300 |
---|---|---|
committer | Pavel <pavel@ucw.cz> | 2019-11-03 19:38:51 +0300 |
commit | 4b83cf07d7a4ae70eae2e49086515cad0f42c629 (patch) | |
tree | 787c2696bf1c6415c9fe19d566bafbecbdcf08a7 /drivers | |
parent | ec28a8cfdce6306afcbf528e231a733010c82251 (diff) | |
download | linux-4b83cf07d7a4ae70eae2e49086515cad0f42c629.tar.xz |
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 <dmurphy@ti.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/leds/led-class.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |