projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbd9acb
)
rtc/mc13xxx: use MODULE_DEVICE_TABLE instead of MODULE_ALIAS
author
Uwe Kleine-König
<
[email protected]
>
Mon, 30 Jul 2012 21:41:50 +0000
(14:41 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 31 Jul 2012 00:25:18 +0000
(17:25 -0700)
This allows automatic driver loading for all supported device types.
Signed-off-by: Uwe Kleine-König <
[email protected]
>
Cc: Alessandro Zummo <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rtc/rtc-mc13xxx.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-mc13xxx.c
b/drivers/rtc/rtc-mc13xxx.c
index 546f6850bffbd9d0a9f884528b36d81296a08110..0ce060280e6b74768b3859ffee3f857aa7f5a11b 100644
(file)
--- a/
drivers/rtc/rtc-mc13xxx.c
+++ b/
drivers/rtc/rtc-mc13xxx.c
@@
-405,8
+405,9
@@
static const struct platform_device_id mc13xxx_rtc_idtable[] = {
}, {
.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 <
[email protected]
>");
MODULE_DESCRIPTION("RTC driver for Freescale MC13XXX PMIC");
MODULE_LICENSE("GPL v2");
-MODULE_ALIAS("platform:" DRIVER_NAME);