aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-sbp2.c
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2008-02-24 13:01:21 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2008-04-18 11:55:32 -0400
commit1dc3bea78b6cd71c2017aa5da076684c049d8b98 (patch)
tree7bbdc2ca8204d48701e2d0b895da217bde49c711 /drivers/firewire/fw-sbp2.c
parent7c1fca336661aaeb70b9094c4b8eaae389027509 (diff)
firewire: refactor fw_unit reference counting
Add wrappers for getting and putting a unit. Remove some line breaks. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Signed-off-by: Jarod Wilson <jwilson@redhat.com>
Diffstat (limited to 'drivers/firewire/fw-sbp2.c')
-rw-r--r--drivers/firewire/fw-sbp2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c
index 8fff18e05000..c7aba5cff5d2 100644
--- a/drivers/firewire/fw-sbp2.c
+++ b/drivers/firewire/fw-sbp2.c
@@ -796,7 +796,7 @@ static void sbp2_release_target(struct kref *kref)
796 scsi_remove_host(shost); 796 scsi_remove_host(shost);
797 fw_notify("released %s\n", tgt->bus_id); 797 fw_notify("released %s\n", tgt->bus_id);
798 798
799 put_device(&tgt->unit->device); 799 fw_unit_put(tgt->unit);
800 scsi_host_put(shost); 800 scsi_host_put(shost);
801 fw_device_put(device); 801 fw_device_put(device);
802} 802}
@@ -1119,7 +1119,7 @@ static int sbp2_probe(struct device *dev)
1119 goto fail_shost_put; 1119 goto fail_shost_put;
1120 1120
1121 fw_device_get(device); 1121 fw_device_get(device);
1122 get_device(&unit->device); 1122 fw_unit_get(unit);
1123 1123
1124 /* Initialize to values that won't match anything in our table. */ 1124 /* Initialize to values that won't match anything in our table. */
1125 firmware_revision = 0xff000000; 1125 firmware_revision = 0xff000000;