kernel: Make CONFIG_NVMEM tristate
[openwrt/openwrt.git] / target / linux / generic / hack-4.19 / 290-nvmem-make-CONFIG_NVMEM-tristate-again.patch
1 From 2579d9b982c7232f9354bcca5262e26a84c38799 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Fri, 2 Nov 2018 17:40:32 +0100
4 Subject: [PATCH] nvmem: make CONFIG_NVMEM tristate again
5
6 Only build it in when OF_NET is selected and make it possible to build
7 it as module otherwise.
8
9 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
10 ---
11 drivers/nvmem/Kconfig | 2 +-
12 drivers/of/Kconfig | 1 +
13 2 files changed, 2 insertions(+), 1 deletion(-)
14
15 --- a/drivers/nvmem/Kconfig
16 +++ b/drivers/nvmem/Kconfig
17 @@ -1,5 +1,5 @@
18 menuconfig NVMEM
19 - bool "NVMEM Support"
20 + tristate "NVMEM Support"
21 help
22 Support for NVMEM(Non Volatile Memory) devices like EEPROM, EFUSES...
23
24 --- a/drivers/of/Kconfig
25 +++ b/drivers/of/Kconfig
26 @@ -71,6 +71,7 @@ config OF_IRQ
27
28 config OF_NET
29 depends on NETDEVICES
30 + select NVMEM
31 def_bool y
32
33 config OF_MDIO