瀏覽代碼

[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>
Wim Van Sebroeck 19 年之前
父節點
當前提交
de4ae58fc9
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      drivers/char/watchdog/mpcore_wdt.c
  2. 1 0
      drivers/char/watchdog/mv64x60_wdt.c

+ 1 - 0
drivers/char/watchdog/mpcore_wdt.c

@@ -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,

+ 1 - 0
drivers/char/watchdog/mv64x60_wdt.c

@@ -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,