]> 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)
commite1144075d36378dcf53cbe145dfdee297d10ca25
tree77383ee603f6cbe195475cfc43279faade8b431e
parentcf0df3656683736c619efa7b48a5072662ac4b7c
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