diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2005-10-23 09:21:44 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2005-11-01 13:31:59 -0500 |
commit | de4ae58fc9f46482f96306301011dfc8b404491f (patch) | |
tree | b7b86327638d0273c1874c9a08edef2b2414accb | |
parent | b3faed6373bfd4468384880a39d4014ead7159f7 (diff) |
[WATCHDOG] adds device_driver .owner field
Initialise the .owner field of the device driver
with the module that owns it, for easier tracking
of device driver ownership. (probably also better
for sysfs...)
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
-rw-r--r-- | drivers/char/watchdog/mpcore_wdt.c | 1 | ||||
-rw-r--r-- | drivers/char/watchdog/mv64x60_wdt.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/watchdog/mpcore_wdt.c b/drivers/char/watchdog/mpcore_wdt.c index 47a5f6ab487..da631c114fd 100644 --- a/drivers/char/watchdog/mpcore_wdt.c +++ b/drivers/char/watchdog/mpcore_wdt.c | |||
@@ -396,6 +396,7 @@ static int __devexit mpcore_wdt_remove(struct device *dev) | |||
396 | } | 396 | } |
397 | 397 | ||
398 | static struct device_driver mpcore_wdt_driver = { | 398 | static struct device_driver mpcore_wdt_driver = { |
399 | .owner = THIS_MODULE, | ||
399 | .name = "mpcore_wdt", | 400 | .name = "mpcore_wdt", |
400 | .bus = &platform_bus_type, | 401 | .bus = &platform_bus_type, |
401 | .probe = mpcore_wdt_probe, | 402 | .probe = mpcore_wdt_probe, |
diff --git a/drivers/char/watchdog/mv64x60_wdt.c b/drivers/char/watchdog/mv64x60_wdt.c index 04e0d7e9680..119b3c541d9 100644 --- a/drivers/char/watchdog/mv64x60_wdt.c +++ b/drivers/char/watchdog/mv64x60_wdt.c | |||
@@ -213,6 +213,7 @@ static int __devexit mv64x60_wdt_remove(struct device *dev) | |||
213 | } | 213 | } |
214 | 214 | ||
215 | static struct device_driver mv64x60_wdt_driver = { | 215 | static struct device_driver mv64x60_wdt_driver = { |
216 | .owner = THIS_MODULE, | ||
216 | .name = MV64x60_WDT_NAME, | 217 | .name = MV64x60_WDT_NAME, |
217 | .bus = &platform_bus_type, | 218 | .bus = &platform_bus_type, |
218 | .probe = mv64x60_wdt_probe, | 219 | .probe = mv64x60_wdt_probe, |