From patchwork Wed Jul 18 13:20:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/2] drivers/rtc/rtc-pcf8563.c: set owner field in driver struct. Date: Wed, 18 Jul 2012 03:20:03 -0000 From: Nick Bowler X-Patchwork-Id: 171669 Message-Id: <1342617604-19516-1-git-send-email-nbowler@elliptictech.com> To: linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com Cc: Alessandro Zummo 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 --- 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 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,