aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic7xxx_osm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_osm.c')
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_osm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c
index 687f19e9cf03..54173887e160 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_osm.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c
@@ -635,6 +635,8 @@ ahc_linux_slave_alloc(struct scsi_device *sdev)
635 635
636 targ->sdev[sdev->lun] = sdev; 636 targ->sdev[sdev->lun] = sdev;
637 637
638 spi_period(starget) = 0;
639
638 return 0; 640 return 0;
639} 641}
640 642
@@ -1612,9 +1614,9 @@ ahc_send_async(struct ahc_softc *ahc, char channel,
1612 if (channel == 'B') 1614 if (channel == 'B')
1613 target_offset += 8; 1615 target_offset += 8;
1614 starget = ahc->platform_data->starget[target_offset]; 1616 starget = ahc->platform_data->starget[target_offset];
1615 targ = scsi_transport_target_data(starget); 1617 if (starget == NULL)
1616 if (targ == NULL)
1617 break; 1618 break;
1619 targ = scsi_transport_target_data(starget);
1618 1620
1619 target_ppr_options = 1621 target_ppr_options =
1620 (spi_dt(starget) ? MSG_EXT_PPR_DT_REQ : 0) 1622 (spi_dt(starget) ? MSG_EXT_PPR_DT_REQ : 0)
@@ -2329,8 +2331,6 @@ ahc_platform_dump_card_state(struct ahc_softc *ahc)
2329{ 2331{
2330} 2332}
2331 2333
2332static void ahc_linux_exit(void);
2333
2334static void ahc_linux_set_width(struct scsi_target *starget, int width) 2334static void ahc_linux_set_width(struct scsi_target *starget, int width)
2335{ 2335{
2336 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); 2336 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);