From f9f1014d29c7a2415a973acba6518d302f56d391 Mon Sep 17 00:00:00 2001 From: Amit Pundir Date: Tue, 29 Dec 2015 12:59:31 +0530 Subject: [PATCH] ANDROID: skip building drivers as modules Few Android drivers e.g. uid_cputime, keyreset/combo fail to build as kernel modules. Instead of fixing the build lets make these drivers non-modular (switch config to "bool" from "tristate" in Kconfig) since Android doesn't support building kernel modules anyway. Change-Id: I50c66228c38c8b7c221ec7d6773fcb59bd201be9 Signed-off-by: Amit Pundir --- drivers/input/Kconfig | 10 ++-------- drivers/misc/Kconfig | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/input/Kconfig b/drivers/input/Kconfig index 5d954cc8cab5..34ffa0257b4b 100644 --- a/drivers/input/Kconfig +++ b/drivers/input/Kconfig @@ -188,24 +188,18 @@ config INPUT_APMPOWER module will be called apm-power. config INPUT_KEYRESET - tristate "Reset key" + bool "Reset key" depends on INPUT select INPUT_KEYCOMBO ---help--- Say Y here if you want to reboot when some keys are pressed; - To compile this driver as a module, choose M here: the - module will be called keyreset. - config INPUT_KEYCOMBO - tristate "Key combo" + bool "Key combo" depends on INPUT ---help--- Say Y here if you want to take action when some keys are pressed; - To compile this driver as a module, choose M here: the - module will be called keycombo. - comment "Input Device Drivers" source "drivers/input/keyboard/Kconfig" diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 1e3e5b88264f..8d0e3475480f 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -767,7 +767,7 @@ config PANEL_BOOT_MESSAGE printf()-formatted message is valid with newline and escape codes. config UID_CPUTIME - tristate "Per-UID cpu time statistics" + bool "Per-UID cpu time statistics" depends on PROFILING help Per UID based cpu time statistics exported to /proc/uid_cputime