]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Switch powernv drivers to use machine_xxx_initcall()
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Jul 2014 12:22:24 +0000 (22:22 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Jul 2014 04:11:26 +0000 (14:11 +1000)
commite8f1266ca746d266bf76e2461744e3671d1874d8
tree359eaf08105ec6cec739e7d8b9b84d89dded2d68
parent567025b0ed34bf322d52a4a3309b4c285635d633
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>
arch/powerpc/platforms/powernv/eeh-powernv.c
arch/powerpc/platforms/powernv/opal-async.c
arch/powerpc/platforms/powernv/opal-lpc.c
arch/powerpc/platforms/powernv/opal-memory-errors.c
arch/powerpc/platforms/powernv/opal-xscom.c
arch/powerpc/platforms/powernv/opal.c
arch/powerpc/platforms/powernv/pci.c
arch/powerpc/platforms/powernv/rng.c