drivers/rtc/rtc-pcf8563.c: set owner field in driver struct
authorNick Bowler <[email protected]>
Mon, 30 Jul 2012 21:41:57 +0000 (14:41 -0700)
committerLinus Torvalds <[email protected]>
Tue, 31 Jul 2012 00:25:19 +0000 (17:25 -0700)
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 <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-pcf8563.c

index 97a3284bb7c60920be7204156fab79b2dabafec6..24a9d6a9c72db54c3a5cda39c91c13dc32e3c71c 100644 (file)
@@ -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,