Skip to content

Commit

Permalink
leds-mc13783: set platform data to NULL at mc13783_led_remove
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Devendra Naga authored and Bryan Wu committed Jul 23, 2012
1 parent b523cfe commit 317dfb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/leds/leds-mc13783.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 317dfb1

Please sign in to comment.