]> asedeno.scripts.mit.edu Git - linux.git/commit
watchdog: sa11x0/pxa: fix error path of driver initialization
authorVladimir Zapolskiy <vz@mleia.com>
Wed, 21 Dec 2016 01:18:16 +0000 (03:18 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 24 Feb 2017 22:00:23 +0000 (14:00 -0800)
commit027d89d96b6833f37091d858b9dcf92cd9b19aa7
treee808bda336f93d2bf47d99c7f131d891e30783c1
parentf3519a662f5f8abf6411a238b1af08a0101878c7
watchdog: sa11x0/pxa: fix error path of driver initialization

The change corrects release of captured resources on error path, namely
the clock is disabled and put if misc device registration fails and not
enabled clock is not disabled now.

Fixes: 6924089c488e ("watchdog: sa11x0/pxa: get rid of get_clock_tick_rate")
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/watchdog/sa1100_wdt.c