From: Michal Simek Date: Thu, 3 Oct 2013 09:46:30 +0000 (+0200) Subject: watchdog: sp805_wdt: Remove unnecessary amba_set_drvdata() X-Git-Tag: v4.0~2892^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1f9cd3225ae2e8626fe7503ae7be92240873049;p=platform%2Fkernel%2Flinux-amlogic.git watchdog: sp805_wdt: Remove unnecessary amba_set_drvdata() 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: 0998d0631001288a5974afc0b2a5f568bcdecb4d) Signed-off-by: Michal Simek Reviewed-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c index 58df98a..3f786ce 100644 --- a/drivers/watchdog/sp805_wdt.c +++ b/drivers/watchdog/sp805_wdt.c @@ -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;