watchdog: aspeed: Move init to arch_initcall
authorAndrew Jeffery <andrew@aj.id.au>
Wed, 20 Sep 2017 05:30:20 +0000 (15:00 +0930)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 28 Dec 2017 19:44:50 +0000 (20:44 +0100)
commitd4238aa458b8c3e64d6f124aafa5c230cae31d6a
tree217c99ee4e0cb6b497eeb1e1bfafe039181f2da7
parent2050dd0610237488df12fce45966db7debbfa4f0
watchdog: aspeed: Move init to arch_initcall

Probing at device_initcall time lead to perverse cases where the
watchdog was probed after, say, I2C devices, which then leaves a
potentially running watchdog at the mercy of I2C device behaviour and
bus conditions.

Load the watchdog driver early to ensure that the kernel is patting it
well before initialising peripherals.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/aspeed_wdt.c