kernel: bump 4.14 to 4.14.125 (FS#2305 FS#2297)
[oweals/openwrt.git] / target / linux / mediatek / patches-4.14 / 0123-soc-mediatek-place-Kconfig-for-all-SoC-drivers-under.patch
1 From 21501b17e017cb10f1a64a73e62e3e2e91a52efa Mon Sep 17 00:00:00 2001
2 From: Sean Wang <sean.wang@mediatek.com>
3 Date: Thu, 5 Oct 2017 11:17:49 +0800
4 Subject: [PATCH 123/224] soc: mediatek: place Kconfig for all SoC drivers
5  under menu
6
7 Add cleanup for placing all Kconfig for all MediaTek SoC drivers under
8 the independent menu as other SoCs vendor usually did. Since the menu
9 would be shown depending on "ARCH_MEDIATEK || COMPILE_TEST" selected and
10 MTK_PMIC_WRAP is still safe compiling with the case of "COMPILE_TEST"
11 only, the superfluous dependency for those items under the menu also is
12 also being removed for the sake of simplicity.
13
14 Signed-off-by: Sean Wang <sean.wang@mediatek.com>
15 Reviewed-by: Jean Delvare <jdelvare@suse.de>
16 Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
17 ---
18  drivers/soc/mediatek/Kconfig | 8 +++++---
19  1 file changed, 5 insertions(+), 3 deletions(-)
20
21 --- a/drivers/soc/mediatek/Kconfig
22 +++ b/drivers/soc/mediatek/Kconfig
23 @@ -1,9 +1,11 @@
24  #
25  # MediaTek SoC drivers
26  #
27 +menu "MediaTek SoC drivers"
28 +       depends on ARCH_MEDIATEK || COMPILE_TEST
29 +
30  config MTK_INFRACFG
31         bool "MediaTek INFRACFG Support"
32 -       depends on ARCH_MEDIATEK || COMPILE_TEST
33         select REGMAP
34         help
35           Say yes here to add support for the MediaTek INFRACFG controller. The
36 @@ -12,7 +14,6 @@ config MTK_INFRACFG
37  
38  config MTK_PMIC_WRAP
39         tristate "MediaTek PMIC Wrapper Support"
40 -       depends on ARCH_MEDIATEK
41         depends on RESET_CONTROLLER
42         select REGMAP
43         help
44 @@ -22,7 +23,6 @@ config MTK_PMIC_WRAP
45  
46  config MTK_SCPSYS
47         bool "MediaTek SCPSYS Support"
48 -       depends on ARCH_MEDIATEK || COMPILE_TEST
49         default ARCH_MEDIATEK
50         select REGMAP
51         select MTK_INFRACFG
52 @@ -30,3 +30,5 @@ config MTK_SCPSYS
53         help
54           Say yes here to add support for the MediaTek SCPSYS power domain
55           driver.
56 +
57 +endmenu