Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: sun6i: Disable the build as a module

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>

authored by

Maxime Ripard and committed by
Alexandre Belloni
37539414 bc7d8ebf

+2 -7
+1 -1
drivers/rtc/Kconfig
··· 1434 1434 based RTC on SUN4V systems. 1435 1435 1436 1436 config RTC_DRV_SUN6I 1437 - tristate "Allwinner A31 RTC" 1437 + bool "Allwinner A31 RTC" 1438 1438 default MACH_SUN6I || MACH_SUN8I || COMPILE_TEST 1439 1439 depends on ARCH_SUNXI 1440 1440 help
+1 -6
drivers/rtc/rtc-sun6i.c
··· 439 439 .of_match_table = sun6i_rtc_dt_ids, 440 440 }, 441 441 }; 442 - 443 - module_platform_driver(sun6i_rtc_driver); 444 - 445 - MODULE_DESCRIPTION("sun6i RTC driver"); 446 - MODULE_AUTHOR("Chen-Yu Tsai <wens@csie.org>"); 447 - MODULE_LICENSE("GPL"); 442 + builtin_platform_driver(sun6i_rtc_driver);