mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
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>
This commit is contained in:
parent
ec28a8cfdc
commit
4b83cf07d7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
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))
|
if (WARN_ON(!p || !*p))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue