Commit de4ae58f authored by Wim Van Sebroeck's avatar Wim Van Sebroeck

[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: default avatarWim Van Sebroeck <wim@iguana.be>
parent b3faed63
...@@ -396,6 +396,7 @@ static int __devexit mpcore_wdt_remove(struct device *dev) ...@@ -396,6 +396,7 @@ static int __devexit mpcore_wdt_remove(struct device *dev)
} }
static struct device_driver mpcore_wdt_driver = { static struct device_driver mpcore_wdt_driver = {
.owner = THIS_MODULE,
.name = "mpcore_wdt", .name = "mpcore_wdt",
.bus = &platform_bus_type, .bus = &platform_bus_type,
.probe = mpcore_wdt_probe, .probe = mpcore_wdt_probe,
......
...@@ -213,6 +213,7 @@ static int __devexit mv64x60_wdt_remove(struct device *dev) ...@@ -213,6 +213,7 @@ static int __devexit mv64x60_wdt_remove(struct device *dev)
} }
static struct device_driver mv64x60_wdt_driver = { static struct device_driver mv64x60_wdt_driver = {
.owner = THIS_MODULE,
.name = MV64x60_WDT_NAME, .name = MV64x60_WDT_NAME,
.bus = &platform_bus_type, .bus = &platform_bus_type,
.probe = mv64x60_wdt_probe, .probe = mv64x60_wdt_probe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment