[PATCH 2/4] powerpc: 52xx, Don't use device_initcall to probe of_platform_bus

Grant Likely grant.likely at secretlab.ca
Wed Jan 3 09:52:20 EST 2007


On 1/2/07, Sylvain Munaut <tnt at 246tnt.com> wrote:
> Using device_initcall makes it happen for every platform that
> compiles this file in. This is really bad, for obvious reasons.
>
> Instead, we use the .init field of the machine description. If
> the platform needs the hook to do something specific it can provides
> its own function and call mpc52xx_declare_of_platform_devices from
> there. If not, the mpc52xx_declare_of_platform_devices function can
> directly be used as the init hook.
>
> Signed-off-by: Sylvain Munaut <tnt at 246tNt.com>
Acked-by: Grant Likely <grant.likely at secretlab.ca>



More information about the Linuxppc-dev mailing list