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)
commit78d3e00bb0bcfb11596b14f5d5472922b4c7e429
tree77383ee603f6cbe195475cfc43279faade8b431e
parent97d2a10d5804d585ab0b58efbd710948401b886a
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