watchdog: f71808e_wdt: refactor to platform device/driver pair
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Mon, 9 Aug 2021 16:20:36 +0000 (18:20 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 26 Oct 2021 19:31:05 +0000 (21:31 +0200)
commit27e0fe00a5c618571ab1533aec5c48b7200efb09
tree45797baa4910413aa608eef67d837e501ce512eb
parent8bea27edc393bdb66b1b586447e97146dce37fbc
watchdog: f71808e_wdt: refactor to platform device/driver pair

Driver so far wasn't ported to the driver model and registered
the watchdog device out of the init after probing the I/O ports
for a watchdog with correct vendor and device revision.

Keep the device detection part at init time, but move watchdog
registration to a platform driver probe function.

Suggested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/9e1088839662e5c357286cab0b9de0bb0602e4fd.1628525954.git-series.a.fatoum@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/f71808e_wdt.c