* + rtc-mc13xxx-use-module_device_table-instead-of-module_alias.patch added to -mm tree
@ 2012-07-12 21:50 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2012-07-12 21:50 UTC (permalink / raw)
To: mm-commits; +Cc: u.kleine-koenig, a.zummo
The patch titled
Subject: rtc/mc13xxx: use MODULE_DEVICE_TABLE instead of MODULE_ALIAS
has been added to the -mm tree. Its filename is
rtc-mc13xxx-use-module_device_table-instead-of-module_alias.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Subject: rtc/mc13xxx: use MODULE_DEVICE_TABLE instead of MODULE_ALIAS
This allows automatic driver loading for all supported device types.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/rtc/rtc-mc13xxx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -puN drivers/rtc/rtc-mc13xxx.c~rtc-mc13xxx-use-module_device_table-instead-of-module_alias drivers/rtc/rtc-mc13xxx.c
--- a/drivers/rtc/rtc-mc13xxx.c~rtc-mc13xxx-use-module_device_table-instead-of-module_alias
+++ a/drivers/rtc/rtc-mc13xxx.c
@@ -405,8 +405,9 @@ static const struct platform_device_id m
}, {
.name = "mc13892-rtc",
},
- { }
+ { /* sentinel */ }
};
+MODULE_DEVICE_TABLE(platform, mc13xxx_rtc_idtable);
static struct platform_driver mc13xxx_rtc_driver = {
.id_table = mc13xxx_rtc_idtable,
@@ -432,4 +433,3 @@ module_exit(mc13xxx_rtc_exit);
MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de>");
MODULE_DESCRIPTION("RTC driver for Freescale MC13XXX PMIC");
MODULE_LICENSE("GPL v2");
-MODULE_ALIAS("platform:" DRIVER_NAME);
_
Subject: Subject: rtc/mc13xxx: use MODULE_DEVICE_TABLE instead of MODULE_ALIAS
Patches currently in -mm which might be from u.kleine-koenig@pengutronix.de are
origin.patch
linux-next.patch
rtc-mc13xxx-use-module_device_table-instead-of-module_alias.patch
rtc-mc13xxx-add-support-for-the-rtc-in-the-mc34708-pmic.patch
--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-07-12 21:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-12 21:50 + rtc-mc13xxx-use-module_device_table-instead-of-module_alias.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.