watchdog: alim7101: register restart handler with kernel restart handler
authorGuenter Roeck <linux@roeck-us.net>
Fri, 26 Sep 2014 00:03:17 +0000 (00:03 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 26 Sep 2014 07:00:32 +0000 (00:00 -0700)
commit87ffc69e4b05f6e98e2b7a42f23132ed3662450a
treee77c6bc25e82294c898db6a6931366a1cdeaa725
parentad0e0e6810b339ddeb97ab9ae24e996db5c11bac
watchdog: alim7101: register restart handler with kernel restart handler

The kernel core now provides an API to trigger a system restart.  Register
with it to restart the system instead of misusing the reboot notifier.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jonas Jensen <jonas.jensen@gmail.com>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Tomasz Figa <t.figa@samsung.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/watchdog/alim7101_wdt.c