mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] drivers/rtc/rtc-pcf8563.c: set owner field in driver struct.
@ 2012-07-18 13:20 Nick Bowler
  2012-07-18 13:20 ` [PATCH 2/2] drivers/rtc/rtc-pcf8563.c: add device tree support Nick Bowler
  0 siblings, 1 reply; 2+ messages in thread
From: Nick Bowler @ 2012-07-18 13:20 UTC (permalink / raw)
  To: linux-kernel, rtc-linux; +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 <nbowler@elliptictech.com>
---
 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,
-- 
1.7.8.6



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-18 13:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-18 13:20 [PATCH 1/2] drivers/rtc/rtc-pcf8563.c: set owner field in driver struct Nick Bowler
2012-07-18 13:20 ` [PATCH 2/2] drivers/rtc/rtc-pcf8563.c: add device tree support Nick Bowler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®