Messages in this thread | | | Date | Thu, 3 Mar 2011 11:33:36 +0100 | From | Wim Van Sebroeck <> | Subject | Re: [RFC] [PATCH 6/10] Generic Watchdog Timer Driver |
| |
Hi Mike,
>> diff --git a/drivers/watchdog/core/watchdog_core.c b/drivers/watchdog/core/watchdog_core.c >> index 52bc520..d1a824e 100644 >> --- a/drivers/watchdog/core/watchdog_core.c >> +++ b/drivers/watchdog/core/watchdog_core.c >> @@ -60,6 +60,10 @@ int register_watchdogdevice(struct watchdog_device *wdd) >> if (wdd == NULL || wdd->info == NULL || wdd->ops == NULL) >> return -ENODATA; >> >> + /* Make sure that the owner of the watchdog operations exists */ >> + if (wdd->ops->owner == NULL) >> + return -ENODATA; > > This check is invalid when the driver is built in.
Will have a look at it. Thanks!
Kind regards, Wim.
| |