Skip to content

Commit

Permalink
watchdog: sp805_wdt: Remove unnecessary amba_set_drvdata()
Browse files Browse the repository at this point in the history
Driver core clears the driver data to NULL after device_release
or on probe failure, so just remove it from here.

Driver core change:
"device-core: Ensure drvdata = NULL when no driver is bound"
(sha1: 0998d06)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Michal Simek authored and Wim Van Sebroeck committed Nov 17, 2013
1 parent f0fcbdb commit b1f9cd3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/watchdog/sp805_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ static int sp805_wdt_remove(struct amba_device *adev)
struct sp805_wdt *wdt = amba_get_drvdata(adev);

watchdog_unregister_device(&wdt->wdd);
amba_set_drvdata(adev, NULL);
watchdog_set_drvdata(&wdt->wdd, NULL);

return 0;
Expand Down

0 comments on commit b1f9cd3

Please sign in to comment.