Skip to content

Commit

Permalink
rtc: sun6i: Disable the build as a module
Browse files Browse the repository at this point in the history
commit 3753941 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 <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
mripard authored and gregkh committed Mar 12, 2017
1 parent 8c53efc commit 616f5ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion drivers/rtc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,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
Expand Down
7 changes: 1 addition & 6 deletions drivers/rtc/rtc-sun6i.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>");
MODULE_LICENSE("GPL");
builtin_platform_driver(sun6i_rtc_driver);

0 comments on commit 616f5ef

Please sign in to comment.