Explorar o código

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>
Devendra Naga %!s(int64=13) %!d(string=hai) anos
pai
achega
317dfb148d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/leds/leds-mc13783.c

+ 1 - 0
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;
 }