diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-03-04 04:34:34 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2014-03-31 07:32:34 -0400 |
commit | a94dd879e2939798294c56468add3d6a8ef04137 (patch) | |
tree | 940c3d20d4e1573674d84e9281c271605bd7a7c6 /drivers | |
parent | b0f1d8bec712b4267995764b34ced2c148ecfacb (diff) |
watchdog: s3c2410_wdt: Remove unneeded initialization
Initializing clk to NULL as a reset/error condition does not
help as NULL is not an invalid condition w.r.t clk. Remove this
initialization altogether as there is no state retention.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/watchdog/s3c2410_wdt.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index aba6cd46b45b..a0f8f771adec 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c | |||
@@ -607,7 +607,6 @@ static int s3c2410wdt_probe(struct platform_device *pdev) | |||
607 | 607 | ||
608 | err_clk: | 608 | err_clk: |
609 | clk_disable_unprepare(wdt->clock); | 609 | clk_disable_unprepare(wdt->clock); |
610 | wdt->clock = NULL; | ||
611 | 610 | ||
612 | err: | 611 | err: |
613 | return ret; | 612 | return ret; |
@@ -627,7 +626,6 @@ static int s3c2410wdt_remove(struct platform_device *dev) | |||
627 | s3c2410wdt_cpufreq_deregister(wdt); | 626 | s3c2410wdt_cpufreq_deregister(wdt); |
628 | 627 | ||
629 | clk_disable_unprepare(wdt->clock); | 628 | clk_disable_unprepare(wdt->clock); |
630 | wdt->clock = NULL; | ||
631 | 629 | ||
632 | return 0; | 630 | return 0; |
633 | } | 631 | } |