ARM: davinci: da850 DT: add support for machine reboot
authorKumar, Anil <anilkumar.v@ti.com>
Wed, 6 Feb 2013 04:00:04 +0000 (09:30 +0530)
committerSekhar Nori <nsekhar@ti.com>
Sat, 9 Feb 2013 17:08:26 +0000 (22:38 +0530)
Update the da8xx_restart() function to support machine reboot
when booting using DT. Have the function search for the watchdog
platform device instead of always using "da8xx_wdt_device" which
is never registered in DT case.

While at it, also make da8xx_wdt_device static since there is no need
for it to be globally visible.

Tested machine reboot with both DT and non-DT boot on DA850 EVM.

Signed-off-by: Kumar, Anil <anilkumar.v@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>

No differences found