]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] 52xx: Don't use device_initcall to probe of_platform_bus
authorSylvain Munaut <tnt@246tNt.com>
Tue, 2 Jan 2007 22:29:53 +0000 (23:29 +0100)
committerPaul Mackerras <paulus@samba.org>
Tue, 9 Jan 2007 06:03:02 +0000 (17:03 +1100)
commitb1ca167f639c8611a8259aabbed1acabd9911320
tree567327796d40a48009dde7f8df947f6a63897efa
parent2801d1aa08b75934c8f112b1bec05eb43ac2777d
[POWERPC] 52xx: Don't use device_initcall to probe of_platform_bus

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@246tNt.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/52xx/lite5200.c
arch/powerpc/platforms/52xx/mpc52xx_common.c
include/asm-powerpc/mpc52xx.h