From: Jeff Dike Date: Tue, 16 Oct 2007 08:26:45 +0000 (-0700) Subject: uml: fix nonremovability of watchdog X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8d82076080d909f18dea859a6767df7e3ff69241;p=linux-beck.git uml: fix nonremovability of watchdog The UML watchdog driver was using the wrong config variable to control whether it can be unloaded once active. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/um/drivers/harddog_kern.c b/arch/um/drivers/harddog_kern.c index 55601687b3bc..a9ad4bd6d953 100644 --- a/arch/um/drivers/harddog_kern.c +++ b/arch/um/drivers/harddog_kern.c @@ -69,7 +69,7 @@ static int harddog_open(struct inode *inode, struct file *file) spin_lock(&lock); if(timer_alive) goto err; -#ifdef CONFIG_HARDDOG_NOWAYOUT +#ifdef CONFIG_WATCHDOG_NOWAYOUT __module_get(THIS_MODULE); #endif