aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2017-01-23 05:41:46 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-12 00:41:52 -0500
commit616f5ef61338a53e997eebbe2c13b21c40df9b86 (patch)
treefce1719a81cb16e967a4ba70ca20fb48d6f9f5df
parent8c53efc399565ef4be8945c9bf45c94153699221 (diff)
rtc: sun6i: Disable the build as a module
commit 3753941475ae6501dcd1e41832bd0e6c35247d6a upstream. Since we have to provide the clock very early on, the RTC driver cannot be built as a module. Make sure that won't happen. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/rtc/Kconfig2
-rw-r--r--drivers/rtc/rtc-sun6i.c7
2 files changed, 2 insertions, 7 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index e859d148aba9..0723c97ebea3 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -1432,7 +1432,7 @@ config RTC_DRV_SUN4V
1432 based RTC on SUN4V systems. 1432 based RTC on SUN4V systems.
1433 1433
1434config RTC_DRV_SUN6I 1434config RTC_DRV_SUN6I
1435 tristate "Allwinner A31 RTC" 1435 bool "Allwinner A31 RTC"
1436 default MACH_SUN6I || MACH_SUN8I || COMPILE_TEST 1436 default MACH_SUN6I || MACH_SUN8I || COMPILE_TEST
1437 depends on ARCH_SUNXI 1437 depends on ARCH_SUNXI
1438 help 1438 help
diff --git a/drivers/rtc/rtc-sun6i.c b/drivers/rtc/rtc-sun6i.c
index c169a2cd4727..a6136cb99851 100644
--- a/drivers/rtc/rtc-sun6i.c
+++ b/drivers/rtc/rtc-sun6i.c
@@ -439,9 +439,4 @@ static struct platform_driver sun6i_rtc_driver = {
439 .of_match_table = sun6i_rtc_dt_ids, 439 .of_match_table = sun6i_rtc_dt_ids,
440 }, 440 },
441}; 441};
442 442builtin_platform_driver(sun6i_rtc_driver);
443module_platform_driver(sun6i_rtc_driver);
444
445MODULE_DESCRIPTION("sun6i RTC driver");
446MODULE_AUTHOR("Chen-Yu Tsai <wens@csie.org>");
447MODULE_LICENSE("GPL");