firewire: core: fix sleep in atomic context due to driver core change
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 9 Jan 2009 19:49:37 +0000 (20:49 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 9 Jan 2009 22:22:32 +0000 (23:22 +0100)
commit6230582320b721e6cf2581d048cb688dca97f504
tree2babcf29c086cf77b8df9fbe54303214b1be01ad
parent73d59314e6ed268d6f322ae1bdd723b23fa5a4ed
firewire: core: fix sleep in atomic context due to driver core change

Due to commit 2831fe6f9cc4e16c103504ee09a47a084297c0f3, "driver core:
create a private portion of struct device", device_initialize() can no
longer be called from atomic contexts.

We now defer it until after config ROM probing.  This requires changes
to the bus manager code because this may use a device before it was
probed.

Reported-by: Jay Fenlason <fenlason@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-card.c
drivers/firewire/fw-device.c