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>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
8d3c941e24
commit
b14726c51c
@@ -20,6 +20,7 @@
|
||||
#include <linux/wait.h>
|
||||
#include <linux/gfp.h>
|
||||
#include <linux/of.h>
|
||||
#include <asm/machdep.h>
|
||||
#include <asm/opal.h>
|
||||
|
||||
#define N_ASYNC_COMPLETIONS 64
|
||||
@@ -201,4 +202,4 @@ out_opal_node:
|
||||
out:
|
||||
return err;
|
||||
}
|
||||
subsys_initcall(opal_async_comp_init);
|
||||
machine_subsys_initcall(powernv, opal_async_comp_init);
|
||||
|
Reference in New Issue
Block a user