]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtc: sun6i: Disable the build as a module
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 23 Jan 2017 10:41:46 +0000 (11:41 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 24 Jan 2017 17:45:29 +0000 (18:45 +0100)
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.

Cc: stable@vger.kernel.org
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/Kconfig
drivers/rtc/rtc-sun6i.c

index 6d4ee1481867aea921ed13c0d28c7b0134432f00..ee287cf63b011925e26368ff6925278c81a711ce 100644 (file)
@@ -1434,7 +1434,7 @@ config RTC_DRV_SUN4V
          based RTC on SUN4V systems.
 
 config RTC_DRV_SUN6I
-       tristate "Allwinner A31 RTC"
+       bool "Allwinner A31 RTC"
        default MACH_SUN6I || MACH_SUN8I || COMPILE_TEST
        depends on ARCH_SUNXI
        help
index c169a2cd47273e11fd62cb85755cb0badbb31a94..a6136cb99851da623a641640868bc45ac6878a1d 100644 (file)
@@ -439,9 +439,4 @@ static struct platform_driver sun6i_rtc_driver = {
                .of_match_table = sun6i_rtc_dt_ids,
        },
 };
-
-module_platform_driver(sun6i_rtc_driver);
-
-MODULE_DESCRIPTION("sun6i RTC driver");
-MODULE_AUTHOR("Chen-Yu Tsai <wens@csie.org>");
-MODULE_LICENSE("GPL");
+builtin_platform_driver(sun6i_rtc_driver);