diff options
-rw-r--r-- | drivers/scsi/ps3rom.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/scsi/ps3rom.c b/drivers/scsi/ps3rom.c index d1e7845e11c7..ce48e2d0193c 100644 --- a/drivers/scsi/ps3rom.c +++ b/drivers/scsi/ps3rom.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <scsi/scsi_dbg.h> | 26 | #include <scsi/scsi_dbg.h> |
27 | #include <scsi/scsi_device.h> | 27 | #include <scsi/scsi_device.h> |
28 | #include <scsi/scsi_host.h> | 28 | #include <scsi/scsi_host.h> |
29 | #include <scsi/scsi_eh.h> | ||
29 | 30 | ||
30 | #include <asm/lv1call.h> | 31 | #include <asm/lv1call.h> |
31 | #include <asm/ps3stor.h> | 32 | #include <asm/ps3stor.h> |
@@ -330,11 +331,7 @@ static irqreturn_t ps3rom_interrupt(int irq, void *data) | |||
330 | goto done; | 331 | goto done; |
331 | } | 332 | } |
332 | 333 | ||
333 | cmd->sense_buffer[0] = 0x70; | 334 | scsi_build_sense_buffer(0, cmd->sense_buffer, sense_key, asc, ascq); |
334 | cmd->sense_buffer[2] = sense_key; | ||
335 | cmd->sense_buffer[7] = 16 - 6; | ||
336 | cmd->sense_buffer[12] = asc; | ||
337 | cmd->sense_buffer[13] = ascq; | ||
338 | cmd->result = SAM_STAT_CHECK_CONDITION; | 335 | cmd->result = SAM_STAT_CHECK_CONDITION; |
339 | 336 | ||
340 | done: | 337 | done: |