diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2014-07-15 22:22:24 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-07-28 14:11:26 +1000 |
commit | b14726c51ce338ee3abe753fa40428a119c12597 (patch) | |
tree | 359eaf08105ec6cec739e7d8b9b84d89dded2d68 /arch/powerpc/platforms/powernv/opal-memory-errors.c | |
parent | 8d3c941e240ba26cb0eb45edfa938ef75f04945e (diff) | |
download | linux-stable-b14726c51ce338ee3abe753fa40428a119c12597.tar.gz linux-stable-b14726c51ce338ee3abe753fa40428a119c12597.tar.bz2 linux-stable-b14726c51ce338ee3abe753fa40428a119c12597.zip |
powerpc/powernv: Switch powernv drivers to use machine_xxx_initcall()
A lot of the code in platforms/powernv is using non-machine initcalls.
That means if a kernel built with powernv support runs on another
platform, for example pseries, the initcalls will still run.
That is usually OK, because the initcalls will check for something in
the device tree or elsewhere before doing anything, so on other
platforms they will usually just return.
But it's fishy for powernv code to be running on other platforms, so
switch them all to be machine initcalls. If we want any of them to run
on other platforms in future they should move to sysdev.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/powernv/opal-memory-errors.c')
-rw-r--r-- | arch/powerpc/platforms/powernv/opal-memory-errors.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-memory-errors.c b/arch/powerpc/platforms/powernv/opal-memory-errors.c index b17a34b695ef..43db2136dbff 100644 --- a/arch/powerpc/platforms/powernv/opal-memory-errors.c +++ b/arch/powerpc/platforms/powernv/opal-memory-errors.c @@ -27,6 +27,7 @@ #include <linux/mm.h> #include <linux/slab.h> +#include <asm/machdep.h> #include <asm/opal.h> #include <asm/cputable.h> @@ -143,4 +144,4 @@ static int __init opal_mem_err_init(void) } return 0; } -subsys_initcall(opal_mem_err_init); +machine_subsys_initcall(powernv, opal_mem_err_init); |