]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.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)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
BugLink: http://bugs.launchpad.net/bugs/1672544
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/rtc/Kconfig
drivers/rtc/rtc-sun6i.c

index 5dc673dc948785a79da8d070954323b9357385c1..3cb42fb8eb53b304033707b9eaaf93747d575af6 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);