]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: fix error in probe() of s3c2410_wdt (reset at booting)
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 13 Jan 2012 05:14:23 +0000 (14:14 +0900)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 28 Feb 2012 16:08:42 +0000 (17:08 +0100)
commite83ddc67f45de557acce1d278270d2c137b41d58
tree77383ee603f6cbe195475cfc43279faade8b431e
parenta56708809d482e885d28778ec3662283f182f324
watchdog: fix error in probe() of s3c2410_wdt (reset at booting)

Probe function of s3c2410 watchdog calls request_irq before initializing
required value (wdt_count). This incurs resetting watchdog counter value
and watchdog-reboot during booting up.

This patch addresses such an issue by calling request_irq later.

Error handling in probe function and calling oder in remove function are
also revised accordingly.

Reported-by: Chanwoo Park <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/s3c2410_wdt.c