diff options
author | Andrew Donnellan <ajd@linux.ibm.com> | 2019-05-09 15:11:15 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-08-05 18:53:03 +1000 |
commit | 08a456aa643776757e07adfdebe7f7681117d144 (patch) | |
tree | ae477a0ad078276e74c99e5ee02b82b5bbeb56de /arch/powerpc/sysdev/scom.c | |
parent | PCI: rpaphp: Avoid a sometimes-uninitialized warning (diff) | |
download | linux-dev-08a456aa643776757e07adfdebe7f7681117d144.tar.xz linux-dev-08a456aa643776757e07adfdebe7f7681117d144.zip |
powerpc/powernv: Move SCOM access code into powernv platform
The powernv platform is the only one that directly accesses SCOMs.
Move the support code to platforms/powernv, and get rid of the
PPC_SCOM Kconfig option, as SCOM support is always selected when
compiling for powernv.
This also means that the Kconfig item for CONFIG_SCOM_DEBUGFS will
show up in menuconfig in the platform menu, rather than at the root,
which is a much better location.
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190509051119.7694-1-ajd@linux.ibm.com
Diffstat (limited to '')
-rw-r--r-- | arch/powerpc/platforms/powernv/scom.c (renamed from arch/powerpc/sysdev/scom.c) | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/scom.c b/arch/powerpc/platforms/powernv/scom.c index 94e885bf3aee..74664e9496b8 100644 --- a/arch/powerpc/sysdev/scom.c +++ b/arch/powerpc/platforms/powernv/scom.c @@ -10,9 +10,10 @@ #include <linux/export.h> #include <asm/debugfs.h> #include <asm/prom.h> -#include <asm/scom.h> #include <linux/uaccess.h> +#include "scom.h" + const struct scom_controller *scom_controller; EXPORT_SYMBOL_GPL(scom_controller); |