[WATCHDOG] adds device_driver .owner field
authorWim Van Sebroeck <wim@iguana.be>
Sun, 23 Oct 2005 13:21:44 +0000 (15:21 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 1 Nov 2005 18:31:59 +0000 (19:31 +0100)
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>
drivers/char/watchdog/mpcore_wdt.c
drivers/char/watchdog/mv64x60_wdt.c

index 47a5f6ab48793ab30566b6965b3ba4e7ad83eda6..da631c114fd17089e4ad475377e813bfa8f9618a 100644 (file)
@@ -396,6 +396,7 @@ static int __devexit mpcore_wdt_remove(struct device *dev)
 }
 
 static struct device_driver mpcore_wdt_driver = {
+       .owner          = THIS_MODULE,
        .name           = "mpcore_wdt",
        .bus            = &platform_bus_type,
        .probe          = mpcore_wdt_probe,
index 04e0d7e9680db15927bd47edbf3c3e8c11829c7e..119b3c541d9510077e14598409bf7c8ac3cc261f 100644 (file)
@@ -213,6 +213,7 @@ static int __devexit mv64x60_wdt_remove(struct device *dev)
 }
 
 static struct device_driver mv64x60_wdt_driver = {
+       .owner = THIS_MODULE,
        .name = MV64x60_WDT_NAME,
        .bus = &platform_bus_type,
        .probe = mv64x60_wdt_probe,