4b4d6438dc7590e7c4f6f3d15f5b42aaef161ecd
[openwrt/openwrt.git] / target / linux / generic / hack-5.4 / 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,6 +1,6 @@
18 # SPDX-License-Identifier: GPL-2.0-only
19 menuconfig NVMEM
20 - bool "NVMEM Support"
21 + tristate "NVMEM Support"
22 help
23 Support for NVMEM(Non Volatile Memory) devices like EEPROM, EFUSES...
24
25 --- a/drivers/of/Kconfig
26 +++ b/drivers/of/Kconfig
27 @@ -72,6 +72,7 @@ config OF_IRQ
28
29 config OF_NET
30 depends on NETDEVICES
31 + select NVMEM
32 def_bool y
33
34 config OF_MDIO