mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
leds-mc13783: set platform data to NULL at mc13783_led_remove
the platform_set_drvdata (pdev, NULL) to be set at the remove of the driver, as we have set the platform data to led at probe. Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
This commit is contained in:
parent
b523cfe61b
commit
317dfb148d
1 changed files with 1 additions and 0 deletions
|
@ -372,6 +372,7 @@ static int __devexit mc13783_led_remove(struct platform_device *pdev)
|
|||
|
||||
mc13xxx_unlock(dev);
|
||||
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
kfree(led);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue