From: Devendra Naga Date: Mon, 2 Jul 2012 08:40:20 +0000 (+0800) Subject: leds-mc13783: set platform data to NULL at mc13783_led_remove X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=317dfb148d606a92e7d2748ab77f3d8f9749cc8a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Bryan Wu --- diff --git a/drivers/leds/leds-mc13783.c b/drivers/leds/leds-mc13783.c index 4cc6a2e3df34..6515c11dbe6b 100644 --- a/drivers/leds/leds-mc13783.c +++ b/drivers/leds/leds-mc13783.c @@ -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; }