diff options
author | Nick Bowler <nbowler@elliptictech.com> | 2012-07-30 23:41:57 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-31 02:25:19 +0200 |
commit | 0a25bf40d8ea9aeb8412666a7bc8ab95b4cddcb1 (patch) | |
tree | 6ba221de466c2f4b8efb2f886ad1ddcc6d580459 | |
parent | rtc/rtc-da9052: remove unneed devm_kfree call (diff) | |
download | linux-0a25bf40d8ea9aeb8412666a7bc8ab95b4cddcb1.tar.xz linux-0a25bf40d8ea9aeb8412666a7bc8ab95b4cddcb1.zip |
drivers/rtc/rtc-pcf8563.c: set owner field in driver struct
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>
-rw-r--r-- | drivers/rtc/rtc-pcf8563.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c index 97a3284bb7c6..24a9d6a9c72d 100644 --- a/drivers/rtc/rtc-pcf8563.c +++ b/drivers/rtc/rtc-pcf8563.c @@ -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, |