aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire')
-rw-r--r--drivers/firewire/sbp2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/firewire/sbp2.c b/drivers/firewire/sbp2.c
index 05f0c0c55f4a..e5df822a8130 100644
--- a/drivers/firewire/sbp2.c
+++ b/drivers/firewire/sbp2.c
@@ -1142,7 +1142,7 @@ static int sbp2_probe(struct device *dev)
1142 return -ENOMEM; 1142 return -ENOMEM;
1143 1143
1144 tgt = (struct sbp2_target *)shost->hostdata; 1144 tgt = (struct sbp2_target *)shost->hostdata;
1145 unit->device.driver_data = tgt; 1145 dev_set_drvdata(&unit->device, tgt);
1146 tgt->unit = unit; 1146 tgt->unit = unit;
1147 kref_init(&tgt->kref); 1147 kref_init(&tgt->kref);
1148 INIT_LIST_HEAD(&tgt->lu_list); 1148 INIT_LIST_HEAD(&tgt->lu_list);
@@ -1199,7 +1199,7 @@ static int sbp2_probe(struct device *dev)
1199static int sbp2_remove(struct device *dev) 1199static int sbp2_remove(struct device *dev)
1200{ 1200{
1201 struct fw_unit *unit = fw_unit(dev); 1201 struct fw_unit *unit = fw_unit(dev);
1202 struct sbp2_target *tgt = unit->device.driver_data; 1202 struct sbp2_target *tgt = dev_get_drvdata(&unit->device);
1203 1203
1204 sbp2_target_put(tgt); 1204 sbp2_target_put(tgt);
1205 return 0; 1205 return 0;
@@ -1259,7 +1259,7 @@ static void sbp2_reconnect(struct work_struct *work)
1259 1259
1260static void sbp2_update(struct fw_unit *unit) 1260static void sbp2_update(struct fw_unit *unit)
1261{ 1261{
1262 struct sbp2_target *tgt = unit->device.driver_data; 1262 struct sbp2_target *tgt = dev_get_drvdata(&unit->device);
1263 struct sbp2_logical_unit *lu; 1263 struct sbp2_logical_unit *lu;
1264 1264
1265 fw_device_enable_phys_dma(fw_parent_device(unit)); 1265 fw_device_enable_phys_dma(fw_parent_device(unit));