]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: imx_sc_wdt: fix pretimeout
authorStefan Eichenberger <eichest@gmail.com>
Tue, 6 Apr 2021 12:12:47 +0000 (14:12 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 21 Jun 2021 06:49:14 +0000 (08:49 +0200)
commit42f21ea40fd8155db6f752b481d34bb7c148d58c
treef6f13b2a9e8a3df2b9c7869a3c5ed167098cded9
parent5841e4df8f9ecafb560fcc08e9f035de7f548262
watchdog: imx_sc_wdt: fix pretimeout

If the WDIOF_PRETIMEOUT flag is not set when registering the device the
driver will not show the sysfs entries or register the default governor.
By moving the registering after the decision whether pretimeout is
supported this gets fixed.

Signed-off-by: Stefan Eichenberger <eichest@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Link: https://lore.kernel.org/r/20210519080311.142928-1-eichest@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/imx_sc_wdt.c