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: 6924089c ("watchdog: sa11x0/pxa: get rid of get_clock_tick_rate") Signed-off-by: NVladimir Zapolskiy <vz@mleia.com> Acked-by: NRobert Jarzmik <robert.jarzmik@free.fr> Reviewed-by: NGuenter Roeck <linux@roeck-us.net> Acked-by: NRussell King <rmk+kernel@armlinux.org.uk> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
Showing
想要评论请 注册 或 登录