rtc: Fix module autoload for OF platform drivers
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 27 Aug 2015 11:52:02 +0000 (13:52 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 17:37:22 +0000 (19:37 +0200)
These platform drivers have a OF device ID table but the OF module
alias information is not created so module autoloading won't work.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-armada38x.c
drivers/rtc/rtc-coh901331.c
drivers/rtc/rtc-da9063.c
drivers/rtc/rtc-moxart.c
drivers/rtc/rtc-mpc5121.c
drivers/rtc/rtc-mt6397.c
drivers/rtc/rtc-mv.c
drivers/rtc/rtc-vt8500.c

index 06c6bd5eab4114a41fc2bf3cb3e8a2689e7c093a..9a3f2a6f512e014b60b86974bdd6875e95e643ad 100644 (file)
@@ -295,6 +295,7 @@ static const struct of_device_id armada38x_rtc_of_match_table[] = {
        { .compatible = "marvell,armada-380-rtc", },
        {}
 };
+MODULE_DEVICE_TABLE(of, armada38x_rtc_of_match_table);
 #endif
 
 static struct platform_driver armada38x_rtc_driver = {
index 56343b2fbc685c386ed577bd027933629197cf35..101b7a240e0fa8e482ef140b921c5b31811e829a 100644 (file)
@@ -263,6 +263,7 @@ static const struct of_device_id coh901331_dt_match[] = {
        { .compatible = "stericsson,coh901331" },
        {},
 };
+MODULE_DEVICE_TABLE(of, coh901331_dt_match);
 
 static struct platform_driver coh901331_driver = {
        .driver = {
index 5f38a5c84b562227e9d27f533621c48cce6a0ef6..00a8f7f4f87cbc58426f11bb8cf83dfcf38ab90e 100644 (file)
@@ -169,6 +169,7 @@ static const struct of_device_id da9063_compatible_reg_id_table[] = {
        { .compatible = "dlg,da9062-rtc", .data = &da9062_aa_regs },
        { },
 };
+MODULE_DEVICE_TABLE(of, da9063_compatible_reg_id_table);
 
 static void da9063_data_to_tm(u8 *data, struct rtc_time *tm,
                              struct da9063_compatible_rtc *rtc)
index 73759c9a4527aeb1cce098be6d1b7f48f47af55a..07b30a373a929f2e5391cc8f04efb5c3613789d5 100644 (file)
@@ -312,6 +312,7 @@ static const struct of_device_id moxart_rtc_match[] = {
        { .compatible = "moxa,moxart-rtc" },
        { },
 };
+MODULE_DEVICE_TABLE(of, moxart_rtc_match);
 
 static struct platform_driver moxart_rtc_driver = {
        .probe  = moxart_rtc_probe,
index 1767e18d5bd4846ad60fe9c4081105d76d04459e..4ca4daa0b8f32ae3761f759245332d1baccaf8c0 100644 (file)
@@ -406,6 +406,7 @@ static const struct of_device_id mpc5121_rtc_match[] = {
        { .compatible = "fsl,mpc5200-rtc", },
        {},
 };
+MODULE_DEVICE_TABLE(of, mpc5121_rtc_match);
 #endif
 
 static struct platform_driver mpc5121_rtc_driver = {
index 30c926b363615c18744dc1c866167ff5ef201f7c..06a5c52b292f292fd619a4049ba264e84b064f70 100644 (file)
@@ -402,6 +402,7 @@ static const struct of_device_id mt6397_rtc_of_match[] = {
        { .compatible = "mediatek,mt6397-rtc", },
        { }
 };
+MODULE_DEVICE_TABLE(of, mt6397_rtc_of_match);
 
 static struct platform_driver mtk_rtc_driver = {
        .driver = {
index 7f50d2ef7f6ef43590b745d37abd3ded9edb7b22..79bb28617d458ec99f77518472f2f1505960d2b0 100644 (file)
@@ -324,6 +324,7 @@ static const struct of_device_id rtc_mv_of_match_table[] = {
        { .compatible = "marvell,orion-rtc", },
        {}
 };
+MODULE_DEVICE_TABLE(of, rtc_mv_of_match_table);
 #endif
 
 static struct platform_driver mv_rtc_driver = {
index a58b6d17e6f074926c2437a44b3533a5fecfab17..27e896995e9b30e966b49a4794257f8b5da098a6 100644 (file)
@@ -271,6 +271,7 @@ static const struct of_device_id wmt_dt_ids[] = {
        { .compatible = "via,vt8500-rtc", },
        {}
 };
+MODULE_DEVICE_TABLE(of, wmt_dt_ids);
 
 static struct platform_driver vt8500_rtc_driver = {
        .probe          = vt8500_rtc_probe,
This page took 0.02725 seconds and 5 git commands to generate.