aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message')
-rw-r--r--drivers/message/fusion/mptspi.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/message/fusion/mptspi.c b/drivers/message/fusion/mptspi.c
index e06f41c6fb11..6b3e0c00952b 100644
--- a/drivers/message/fusion/mptspi.c
+++ b/drivers/message/fusion/mptspi.c
@@ -726,13 +726,15 @@ static int mptspi_slave_configure(struct scsi_device *sdev)
726 struct _MPT_SCSI_HOST *hd = 726 struct _MPT_SCSI_HOST *hd =
727 (struct _MPT_SCSI_HOST *)sdev->host->hostdata; 727 (struct _MPT_SCSI_HOST *)sdev->host->hostdata;
728 VirtTarget *vtarget = scsi_target(sdev)->hostdata; 728 VirtTarget *vtarget = scsi_target(sdev)->hostdata;
729 int ret = mptscsih_slave_configure(sdev); 729 int ret;
730
731 mptspi_initTarget(hd, vtarget, sdev);
732
733 ret = mptscsih_slave_configure(sdev);
730 734
731 if (ret) 735 if (ret)
732 return ret; 736 return ret;
733 737
734 mptspi_initTarget(hd, vtarget, sdev);
735
736 ddvprintk((MYIOC_s_INFO_FMT "id=%d min_period=0x%02x" 738 ddvprintk((MYIOC_s_INFO_FMT "id=%d min_period=0x%02x"
737 " max_offset=0x%02x max_width=%d\n", hd->ioc->name, 739 " max_offset=0x%02x max_width=%d\n", hd->ioc->name,
738 sdev->id, spi_min_period(scsi_target(sdev)), 740 sdev->id, spi_min_period(scsi_target(sdev)),