Skip to content

Commit

Permalink
[WATCHDOG] adds device_driver .owner field
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wim Van Sebroeck committed Nov 1, 2005
1 parent b3faed6 commit de4ae58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/watchdog/mpcore_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions drivers/char/watchdog/mv64x60_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit de4ae58

Please sign in to comment.