290-nvmem-make-CONFIG_NVMEM-tristate-again.patch 856 B

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