mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
007def0467
commit
0a25bf40d8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue