powerpc/papr_scm: Use depend instead of select
authorOliver O'Halloran <[email protected]>
Thu, 6 Dec 2018 15:17:08 +0000 (02:17 +1100)
committerMichael Ellerman <[email protected]>
Fri, 7 Dec 2018 12:32:01 +0000 (23:32 +1100)
Making PAPR_SCM select LIBNVDIMM results in circular dependencies in
Kconfig when another symbol depends on it. Fix this by replacing the
select with a depends.

Fixes: b5beae5e224f ("powerpc/pseries: Add driver for PAPR SCM regions")
Reported-by: Alastair D'Silva <[email protected]>
Signed-off-by: Oliver O'Halloran <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
arch/powerpc/platforms/pseries/Kconfig

index 2e4bd32154b5d756396e3793ed7e6066cd572af3..472b784f01ebf0b9106a0753d191c059f3406307 100644 (file)
@@ -140,8 +140,7 @@ config IBMEBUS
          Bus device driver for GX bus based adapters.
 
 config PAPR_SCM
-       depends on PPC_PSERIES && MEMORY_HOTPLUG
-       select LIBNVDIMM
+       depends on PPC_PSERIES && MEMORY_HOTPLUG && LIBNVDIMM
        tristate "Support for the PAPR Storage Class Memory interface"
        help
          Enable access to hypervisor provided storage class memory.