firewire: Allocate scsi_host up front and allocate the sbp2_device as hostdata.
authorKristian Høgsberg <krh@redhat.com>
Wed, 9 May 2007 23:23:07 +0000 (19:23 -0400)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 10 May 2007 16:24:14 +0000 (18:24 +0200)
commitad85274fb7f1b3c8c03f6f516dc6196a19ea4296
tree16d0853c3f895384320504e6d3e2526a0f46508d
parent1e4c7b0dabb46eb3a2a15cf5efbd3945b13373a0
firewire: Allocate scsi_host up front and allocate the sbp2_device as hostdata.

Avoids an extra allocation and simplifies lifetime rules for the scsi_host.

Signed-off-by: Kristian Hoegsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-sbp2.c