diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2012-05-18 12:39:39 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2012-05-21 15:42:51 -0400 |
commit | 473ffe6560fd5fa5fd5a488e8948899231972bd5 (patch) | |
tree | 0c5dd7c1f87105da61fa2568b43b315feb0da00c /drivers/firewire/sbp2.c | |
parent | 0ad8c6a22d03a1598f7cc6585c65354dadca62ad (diff) |
firewire: sbp2: give correct DMA device to scsi framework
The sbp2 driver does DMA not on the unit but on the card device.
The driver worked even with the wrong device because at the moment, it
happens to reimplement the DMA functions of the SCSI framework.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/sbp2.c')
-rw-r--r-- | drivers/firewire/sbp2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/firewire/sbp2.c b/drivers/firewire/sbp2.c index b7e65d7eab64..2e202d3bf84d 100644 --- a/drivers/firewire/sbp2.c +++ b/drivers/firewire/sbp2.c | |||
@@ -1163,7 +1163,8 @@ static int sbp2_probe(struct device *dev) | |||
1163 | 1163 | ||
1164 | shost->max_cmd_len = SBP2_MAX_CDB_SIZE; | 1164 | shost->max_cmd_len = SBP2_MAX_CDB_SIZE; |
1165 | 1165 | ||
1166 | if (scsi_add_host(shost, &unit->device) < 0) | 1166 | if (scsi_add_host_with_dma(shost, &unit->device, |
1167 | device->card->device) < 0) | ||
1167 | goto fail_shost_put; | 1168 | goto fail_shost_put; |
1168 | 1169 | ||
1169 | /* implicit directory ID */ | 1170 | /* implicit directory ID */ |