[parisc-linux-cvs] linux-2.5 deller

Helge Deller parisc-linux@lists.parisc-linux.org
Sun, 29 Dec 2002 13:08:13 -0700 (MST)


CVSROOT:	/var/cvs
Module name:	linux-2.5
Changes by:	deller	02/12/29 13:08:13

Modified files:
	arch/parisc/kernel: drivers.c 

Log message:
Bugfix: ensure all parent devices are registered before we register
child devices.
E.g. in the following list the devices marked with "*" were never
registered in the old routine and thus crashed the kernel in
drivers/base/core.c:188

This patch makes 2.5.53 boot again my 715/64.

device_register(parisc1)
device_register(parisc2)
device_register(parisc2)
device_register(parisc2:0)	*
device_register(parisc2:0:1)
device_register(parisc2:0:2)
device_register(parisc2:0:4)
device_register(parisc2:0:6)
device_register(parisc2:0:8)
device_register(parisc2:0:10)
device_register(parisc2:0:11)
device_register(parisc2:0:12)
device_register(parisc4)
device_register(parisc5)
device_register(parisc5)
device_register(parisc5:0)	*
device_register(parisc5:0:1)
device_register(parisc5:0:2)
device_register(parisc8)
device_register(parisc9)