Use the new macro to prevent removing the driver if NOWAYOUT. Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> --- drivers/watchdog/renesas_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/renesas_wdt.c b/drivers/watchdog/renesas_wdt.c index f45cb183fa75..92339c744cce 100644 --- a/drivers/watchdog/renesas_wdt.c +++ b/drivers/watchdog/renesas_wdt.c @@ -302,7 +302,7 @@ static struct platform_driver rwdt_driver = { .probe = rwdt_probe, .remove = rwdt_remove, }; -module_platform_driver(rwdt_driver); +module_watchdog_platform_driver(rwdt_driver, nowayout); MODULE_DESCRIPTION("Renesas WDT Watchdog Driver"); MODULE_LICENSE("GPL v2"); -- 2.11.0