watchdog: imx2_wdt: add restart handler support
authorJingchang Lu <jingchang.lu@freescale.com>
Fri, 12 Sep 2014 07:24:36 +0000 (15:24 +0800)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 20 Oct 2014 19:04:50 +0000 (21:04 +0200)
commit334a9d8131254e06685b2af0c0f3cc7b3ec5bd04
treebc7ea47ee66c67c69b8b1ad2e853e82a5ac83bd6
parent05e487d905ab29b5756d6d1e47e27eefa6693fb3
watchdog: imx2_wdt: add restart handler support

  Register the watchdog as the system restart function
to the new introducing kernel restart call chain in the
driver instead of providing the restart in machine desc.
  This restart handler function is from the mxc_restart()
in arch/arm/mach-imx/system.c

Signed-off-by: Jingchang Lu <jingchang.lu@freescale.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/imx2_wdt.c