ide: Fix ordering of procfs registry.
authorWolfram Sang <w.sang@pengutronix.de>
Thu, 2 Sep 2010 11:28:39 +0000 (11:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Sep 2010 04:34:25 +0000 (21:34 -0700)
commitdbee032295dac88742734ee9988e08a0e4f2f732
tree75369269de5fe9362369592e8b4fe46be5340da8
parentcd078af65d5c2f19c0f378062b07a0a79b000723
ide: Fix ordering of procfs registry.

We must ensure that ide_proc_port_register_devices() occurs on an
interface before ide_proc_register_driver() executes for that
interfaces drives.

Therefore defer the registry of the driver device objects backed by
ide_bus_type until after ide_proc_port_register_devices() has run
and thus all of the drive->proc procfs directory pointers have been
setup.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-probe.c