aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/hack-5.4/290-nvmem-make-CONFIG_NVMEM-tristate-again.patch
blob: 4b4d6438dc7590e7c4f6f3d15f5b42aaef161ecd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 2579d9b982c7232f9354bcca5262e26a84c38799 Mon Sep 17 00:00:00 2001
From: Hauke Mehrtens <hauke@hauke-m.de>
Date: Fri, 2 Nov 2018 17:40:32 +0100
Subject: [PATCH] nvmem: make CONFIG_NVMEM tristate again

Only build it in when OF_NET is selected and make it possible to build
it as module otherwise.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 drivers/nvmem/Kconfig | 2 +-
 drivers/of/Kconfig    | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

--- a/drivers/nvmem/Kconfig
+++ b/drivers/nvmem/Kconfig
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 menuconfig NVMEM
-	bool "NVMEM Support"
+	tristate "NVMEM Support"
 	help
 	  Support for NVMEM(Non Volatile Memory) devices like EEPROM, EFUSES...
 
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -72,6 +72,7 @@ config OF_IRQ
 
 config OF_NET
 	depends on NETDEVICES
+	select NVMEM
 	def_bool y
 
 config OF_MDIO