diff options
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r-- | drivers/scsi/hpsa.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index c5d0606ad097..3759d1199b0c 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -143,8 +143,7 @@ static void fill_cmd(struct CommandList *c, u8 cmd, struct ctlr_info *h, | |||
143 | void *buff, size_t size, u8 page_code, unsigned char *scsi3addr, | 143 | void *buff, size_t size, u8 page_code, unsigned char *scsi3addr, |
144 | int cmd_type); | 144 | int cmd_type); |
145 | 145 | ||
146 | static int hpsa_scsi_queue_command(struct scsi_cmnd *cmd, | 146 | static int hpsa_scsi_queue_command(struct Scsi_Host *h, struct scsi_cmnd *cmd); |
147 | void (*done)(struct scsi_cmnd *)); | ||
148 | static void hpsa_scan_start(struct Scsi_Host *); | 147 | static void hpsa_scan_start(struct Scsi_Host *); |
149 | static int hpsa_scan_finished(struct Scsi_Host *sh, | 148 | static int hpsa_scan_finished(struct Scsi_Host *sh, |
150 | unsigned long elapsed_time); | 149 | unsigned long elapsed_time); |
@@ -1926,7 +1925,7 @@ sglist_finished: | |||
1926 | } | 1925 | } |
1927 | 1926 | ||
1928 | 1927 | ||
1929 | static int hpsa_scsi_queue_command(struct scsi_cmnd *cmd, | 1928 | static int hpsa_scsi_queue_command_lck(struct scsi_cmnd *cmd, |
1930 | void (*done)(struct scsi_cmnd *)) | 1929 | void (*done)(struct scsi_cmnd *)) |
1931 | { | 1930 | { |
1932 | struct ctlr_info *h; | 1931 | struct ctlr_info *h; |
@@ -2020,6 +2019,8 @@ static int hpsa_scsi_queue_command(struct scsi_cmnd *cmd, | |||
2020 | return 0; | 2019 | return 0; |
2021 | } | 2020 | } |
2022 | 2021 | ||
2022 | static DEF_SCSI_QCMD(hpsa_scsi_queue_command) | ||
2023 | |||
2023 | static void hpsa_scan_start(struct Scsi_Host *sh) | 2024 | static void hpsa_scan_start(struct Scsi_Host *sh) |
2024 | { | 2025 | { |
2025 | struct ctlr_info *h = shost_to_hba(sh); | 2026 | struct ctlr_info *h = shost_to_hba(sh); |