Patchwork [1/2] drivers/rtc/rtc-pcf8563.c: set owner field in driver struct.

login
register
mail settings
Submitter Nick Bowler
Date July 18, 2012, 1:20 p.m.
Message ID <1342617604-19516-1-git-send-email-nbowler@elliptictech.com>
Download mbox | patch
Permalink /patch/171669/
State New
Headers show

Comments

Nick Bowler - July 18, 2012, 1:20 p.m.
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>
---
 drivers/rtc/rtc-pcf8563.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c
index 97a3284..24a9d6a 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,