Use the new macro to prevent removing the driver if NOWAYOUT. Note: This is only a build-tested proof-of-concept! Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> --- drivers/watchdog/i6300esb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/i6300esb.c b/drivers/watchdog/i6300esb.c index 950c71a8bb22..939224789e2a 100644 --- a/drivers/watchdog/i6300esb.c +++ b/drivers/watchdog/i6300esb.c @@ -356,7 +356,7 @@ static struct pci_driver esb_driver = { .remove = esb_remove, }; -module_pci_driver(esb_driver); +module_watchdog_pci_driver(esb_driver, nowayout); MODULE_AUTHOR("Ross Biro and David Härdeman"); MODULE_DESCRIPTION("Watchdog driver for Intel 6300ESB chipsets"); -- 2.11.0