Skip to content

Commit

Permalink
drivers/rtc/rtc-pcf8563.c: set owner field in driver struct
Browse files Browse the repository at this point in the history
The owner member is supposed to be set to the module implementing the
device driver, i.e., THIS_MODULE.  This enables the appropriate module
link in sysfs.

Signed-off-by: Nick Bowler <nbowler@elliptictech.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Nick Bowler authored and torvalds committed Jul 31, 2012
1 parent 007def0 commit 0a25bf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/rtc/rtc-pcf8563.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ MODULE_DEVICE_TABLE(i2c, pcf8563_id);
static struct i2c_driver pcf8563_driver = {
.driver = {
.name = "rtc-pcf8563",
.owner = THIS_MODULE,
},
.probe = pcf8563_probe,
.remove = pcf8563_remove,
Expand Down

0 comments on commit 0a25bf4

Please sign in to comment.