diff options
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/sbp2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/firewire/sbp2.c b/drivers/firewire/sbp2.c index 2353643721c1..24c45635376a 100644 --- a/drivers/firewire/sbp2.c +++ b/drivers/firewire/sbp2.c | |||
@@ -1136,7 +1136,7 @@ static int sbp2_probe(struct device *dev) | |||
1136 | return -ENOMEM; | 1136 | return -ENOMEM; |
1137 | 1137 | ||
1138 | tgt = (struct sbp2_target *)shost->hostdata; | 1138 | tgt = (struct sbp2_target *)shost->hostdata; |
1139 | unit->device.driver_data = tgt; | 1139 | dev_set_drvdata(&unit->device, tgt); |
1140 | tgt->unit = unit; | 1140 | tgt->unit = unit; |
1141 | kref_init(&tgt->kref); | 1141 | kref_init(&tgt->kref); |
1142 | INIT_LIST_HEAD(&tgt->lu_list); | 1142 | INIT_LIST_HEAD(&tgt->lu_list); |
@@ -1191,7 +1191,7 @@ static int sbp2_probe(struct device *dev) | |||
1191 | static int sbp2_remove(struct device *dev) | 1191 | static int sbp2_remove(struct device *dev) |
1192 | { | 1192 | { |
1193 | struct fw_unit *unit = fw_unit(dev); | 1193 | struct fw_unit *unit = fw_unit(dev); |
1194 | struct sbp2_target *tgt = unit->device.driver_data; | 1194 | struct sbp2_target *tgt = dev_get_drvdata(&unit->device); |
1195 | 1195 | ||
1196 | sbp2_target_put(tgt); | 1196 | sbp2_target_put(tgt); |
1197 | return 0; | 1197 | return 0; |
@@ -1251,7 +1251,7 @@ static void sbp2_reconnect(struct work_struct *work) | |||
1251 | 1251 | ||
1252 | static void sbp2_update(struct fw_unit *unit) | 1252 | static void sbp2_update(struct fw_unit *unit) |
1253 | { | 1253 | { |
1254 | struct sbp2_target *tgt = unit->device.driver_data; | 1254 | struct sbp2_target *tgt = dev_get_drvdata(&unit->device); |
1255 | struct sbp2_logical_unit *lu; | 1255 | struct sbp2_logical_unit *lu; |
1256 | 1256 | ||
1257 | fw_device_enable_phys_dma(fw_parent_device(unit)); | 1257 | fw_device_enable_phys_dma(fw_parent_device(unit)); |