watchdog: meson_wdt: fix register and callback of reboot notfiy
authorBo Yang <bo.yang@amlogic.com>
Fri, 7 Jul 2017 10:24:50 +0000 (18:24 +0800)
committerBo Yang <bo.yang@amlogic.com>
Sat, 8 Jul 2017 03:13:59 +0000 (20:13 -0700)
commit1674fa1ab5f328ffd4fe692a64e25e29937018de
tree2ea6dd76358366858e52d7bb4da6a3f9ecf466f1
parent4cc49ffb39575ceac1c317a3b400214bbde186d0
watchdog: meson_wdt: fix register and callback of reboot notfiy

PD#147089: watchdog: meson_wdt: fix register and callback of reboot notify

The function register_reboot_notifier() use the wrong notifier_block
variable. So the container_of in the callback can't get the right pointer
of the struct.

The watchdog is disable in case of system down. If the kernel panic, the
reboot notify should ignore that.

Change-Id: I3fd21590808f4b380ddd54883db576e5c13c04a1
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
drivers/amlogic/watchdog/meson_wdt.c