From: Nick Bowler Date: Mon, 30 Jul 2012 21:41:57 +0000 (-0700) Subject: drivers/rtc/rtc-pcf8563.c: set owner field in driver struct X-Git-Tag: v3.6-rc1~41^2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a25bf40d8ea9aeb8412666a7bc8ab95b4cddcb1;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.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 Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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,