diff options
author | Eric Moore <eric.moore@lsil.com> | 2007-01-04 22:46:54 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-01-06 10:31:58 -0500 |
commit | f99be43b3024f2dd054f2addd54a318eabee2018 (patch) | |
tree | 7032ee5ede603703b36d627836c53a8851407bfd /drivers/message/fusion/mptscsih.c | |
parent | 86dd424266530cda55258b2b33d04c23a88b9a9c (diff) |
[SCSI] fusion: power pc and miscellaneous bug fixs
* Endian fix's for warnings found in ppc environment.
* Fix compile time warning when calling scsi_device_reprobe, where
in newer kernels this API expects its return value to be examined.
* Fix compile errors when debug messages are enabled.
Signed-off-by: Eric Moore <Eric.Moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/mptscsih.c')
-rw-r--r-- | drivers/message/fusion/mptscsih.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c index 076eb2b573a3..d70cb11de5c9 100644 --- a/drivers/message/fusion/mptscsih.c +++ b/drivers/message/fusion/mptscsih.c | |||
@@ -2699,7 +2699,8 @@ mptscsih_initTarget(MPT_SCSI_HOST *hd, VirtTarget *vtarget, | |||
2699 | struct scsi_device *sdev) | 2699 | struct scsi_device *sdev) |
2700 | { | 2700 | { |
2701 | dinitprintk((MYIOC_s_INFO_FMT "initTarget bus=%d id=%d lun=%d hd=%p\n", | 2701 | dinitprintk((MYIOC_s_INFO_FMT "initTarget bus=%d id=%d lun=%d hd=%p\n", |
2702 | hd->ioc->name, vtarget->bus_id, vtarget->target_id, lun, hd)); | 2702 | hd->ioc->name, vtarget->bus_id, vtarget->target_id, |
2703 | sdev->lun, hd)); | ||
2703 | 2704 | ||
2704 | /* Is LUN supported? If so, upper 2 bits will be 0 | 2705 | /* Is LUN supported? If so, upper 2 bits will be 0 |
2705 | * in first byte of inquiry data. | 2706 | * in first byte of inquiry data. |
@@ -2781,7 +2782,7 @@ mptscsih_setTargetNegoParms(MPT_SCSI_HOST *hd, VirtTarget *target, | |||
2781 | else { | 2782 | else { |
2782 | factor = MPT_ULTRA320; | 2783 | factor = MPT_ULTRA320; |
2783 | if (scsi_device_qas(sdev)) { | 2784 | if (scsi_device_qas(sdev)) { |
2784 | ddvtprintk((KERN_INFO "Enabling QAS due to byte56=%02x on id=%d!\n", byte56, id)); | 2785 | ddvtprintk((KERN_INFO "Enabling QAS due to byte56=%02x on id=%d!\n", scsi_device_qas(sdev), id)); |
2785 | noQas = 0; | 2786 | noQas = 0; |
2786 | } | 2787 | } |
2787 | if (sdev->type == TYPE_TAPE && | 2788 | if (sdev->type == TYPE_TAPE && |