Skip to content

Commit

Permalink
drivers/pps/clients/pps-gpio.c: remove unnecessary platform_set_drvda…
Browse files Browse the repository at this point in the history
…ta()

The driver core clears the driver data to NULL after device_release or on
probe failure.  Thus, it is not needed to manually clear the device driver
data to NULL.

Signed-off-by: Jingoo Han <[email protected]>
Cc: Rodolfo Giometti <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Jingoo Han authored and torvalds committed Sep 11, 2013
1 parent 666dc7c commit b67fb08
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/pps/clients/pps-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ static int pps_gpio_remove(struct platform_device *pdev)
{
struct pps_gpio_device_data *data = platform_get_drvdata(pdev);

platform_set_drvdata(pdev, NULL);
pps_unregister_source(data->pps);
dev_info(&pdev->dev, "removed IRQ %d as PPS source\n", data->irq);
return 0;
Expand Down

0 comments on commit b67fb08

Please sign in to comment.