diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 11:35:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 11:35:50 -0500 |
commit | 19da9b8b6ef80e4b1f870c0d270df32571fdaad6 (patch) | |
tree | 7da3f7ff720e6543a1b1d30fe5e38b9a3c53d064 | |
parent | a7c243b544c0e9f6775c2607decaa59d54fb9e11 (diff) | |
parent | 7c3983357fdaef3ae71a0d7081a4b6dcfd869d39 (diff) |
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev
-rw-r--r-- | drivers/scsi/ahci.c | 4 | ||||
-rw-r--r-- | drivers/scsi/ata_piix.c | 3 | ||||
-rw-r--r-- | drivers/scsi/libata-core.c | 11 | ||||
-rw-r--r-- | drivers/scsi/libata-scsi.c | 9 | ||||
-rw-r--r-- | drivers/scsi/pdc_adma.c | 3 | ||||
-rw-r--r-- | drivers/scsi/sata_mv.c | 4 | ||||
-rw-r--r-- | drivers/scsi/sata_nv.c | 3 | ||||
-rw-r--r-- | drivers/scsi/sata_promise.c | 4 | ||||
-rw-r--r-- | drivers/scsi/sata_qstor.c | 3 | ||||
-rw-r--r-- | drivers/scsi/sata_sil.c | 3 | ||||
-rw-r--r-- | drivers/scsi/sata_sil24.c | 4 | ||||
-rw-r--r-- | drivers/scsi/sata_sis.c | 3 | ||||
-rw-r--r-- | drivers/scsi/sata_svw.c | 3 | ||||
-rw-r--r-- | drivers/scsi/sata_sx4.c | 4 | ||||
-rw-r--r-- | drivers/scsi/sata_uli.c | 3 | ||||
-rw-r--r-- | drivers/scsi/sata_via.c | 3 | ||||
-rw-r--r-- | drivers/scsi/sata_vsc.c | 3 | ||||
-rw-r--r-- | include/linux/libata.h | 6 |
18 files changed, 33 insertions, 43 deletions
diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c index 4612312c0c2d..10c470e7d316 100644 --- a/drivers/scsi/ahci.c +++ b/drivers/scsi/ahci.c | |||
@@ -42,8 +42,8 @@ | |||
42 | #include <linux/sched.h> | 42 | #include <linux/sched.h> |
43 | #include <linux/dma-mapping.h> | 43 | #include <linux/dma-mapping.h> |
44 | #include <linux/device.h> | 44 | #include <linux/device.h> |
45 | #include "scsi.h" | ||
46 | #include <scsi/scsi_host.h> | 45 | #include <scsi/scsi_host.h> |
46 | #include <scsi/scsi_cmnd.h> | ||
47 | #include <linux/libata.h> | 47 | #include <linux/libata.h> |
48 | #include <asm/io.h> | 48 | #include <asm/io.h> |
49 | 49 | ||
@@ -196,7 +196,7 @@ static u8 ahci_check_status(struct ata_port *ap); | |||
196 | static inline int ahci_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc); | 196 | static inline int ahci_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc); |
197 | static void ahci_remove_one (struct pci_dev *pdev); | 197 | static void ahci_remove_one (struct pci_dev *pdev); |
198 | 198 | ||
199 | static Scsi_Host_Template ahci_sht = { | 199 | static struct scsi_host_template ahci_sht = { |
200 | .module = THIS_MODULE, | 200 | .module = THIS_MODULE, |
201 | .name = DRV_NAME, | 201 | .name = DRV_NAME, |
202 | .ioctl = ata_scsi_ioctl, | 202 | .ioctl = ata_scsi_ioctl, |
diff --git a/drivers/scsi/ata_piix.c b/drivers/scsi/ata_piix.c index 7f8aa1b552ce..a1bd8d95623c 100644 --- a/drivers/scsi/ata_piix.c +++ b/drivers/scsi/ata_piix.c | |||
@@ -46,7 +46,6 @@ | |||
46 | #include <linux/blkdev.h> | 46 | #include <linux/blkdev.h> |
47 | #include <linux/delay.h> | 47 | #include <linux/delay.h> |
48 | #include <linux/device.h> | 48 | #include <linux/device.h> |
49 | #include "scsi.h" | ||
50 | #include <scsi/scsi_host.h> | 49 | #include <scsi/scsi_host.h> |
51 | #include <linux/libata.h> | 50 | #include <linux/libata.h> |
52 | 51 | ||
@@ -128,7 +127,7 @@ static struct pci_driver piix_pci_driver = { | |||
128 | .remove = ata_pci_remove_one, | 127 | .remove = ata_pci_remove_one, |
129 | }; | 128 | }; |
130 | 129 | ||
131 | static Scsi_Host_Template piix_sht = { | 130 | static struct scsi_host_template piix_sht = { |
132 | .module = THIS_MODULE, | 131 | .module = THIS_MODULE, |
133 | .name = DRV_NAME, | 132 | .name = DRV_NAME, |
134 | .ioctl = ata_scsi_ioctl, | 133 | .ioctl = ata_scsi_ioctl, |
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 1c1a7caf785e..a74b4071a662 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -51,8 +51,8 @@ | |||
51 | #include <linux/jiffies.h> | 51 | #include <linux/jiffies.h> |
52 | #include <linux/scatterlist.h> | 52 | #include <linux/scatterlist.h> |
53 | #include <scsi/scsi.h> | 53 | #include <scsi/scsi.h> |
54 | #include "scsi.h" | ||
55 | #include "scsi_priv.h" | 54 | #include "scsi_priv.h" |
55 | #include <scsi/scsi_cmnd.h> | ||
56 | #include <scsi/scsi_host.h> | 56 | #include <scsi/scsi_host.h> |
57 | #include <linux/libata.h> | 57 | #include <linux/libata.h> |
58 | #include <asm/io.h> | 58 | #include <asm/io.h> |
@@ -1144,7 +1144,7 @@ retry: | |||
1144 | * ATA software reset (SRST, the default) does not appear | 1144 | * ATA software reset (SRST, the default) does not appear |
1145 | * to have this problem. | 1145 | * to have this problem. |
1146 | */ | 1146 | */ |
1147 | if ((using_edd) && (qc->tf.command == ATA_CMD_ID_ATA)) { | 1147 | if ((using_edd) && (dev->class == ATA_DEV_ATA)) { |
1148 | u8 err = qc->tf.feature; | 1148 | u8 err = qc->tf.feature; |
1149 | if (err & ATA_ABORTED) { | 1149 | if (err & ATA_ABORTED) { |
1150 | dev->class = ATA_DEV_ATAPI; | 1150 | dev->class = ATA_DEV_ATAPI; |
@@ -2713,7 +2713,7 @@ static int ata_sg_setup(struct ata_queued_cmd *qc) | |||
2713 | /** | 2713 | /** |
2714 | * ata_poll_qc_complete - turn irq back on and finish qc | 2714 | * ata_poll_qc_complete - turn irq back on and finish qc |
2715 | * @qc: Command to complete | 2715 | * @qc: Command to complete |
2716 | * @drv_stat: ATA status register content | 2716 | * @err_mask: ATA status register content |
2717 | * | 2717 | * |
2718 | * LOCKING: | 2718 | * LOCKING: |
2719 | * None. (grabs host lock) | 2719 | * None. (grabs host lock) |
@@ -2747,7 +2747,6 @@ static unsigned long ata_pio_poll(struct ata_port *ap) | |||
2747 | u8 status; | 2747 | u8 status; |
2748 | unsigned int poll_state = HSM_ST_UNKNOWN; | 2748 | unsigned int poll_state = HSM_ST_UNKNOWN; |
2749 | unsigned int reg_state = HSM_ST_UNKNOWN; | 2749 | unsigned int reg_state = HSM_ST_UNKNOWN; |
2750 | const unsigned int tmout_state = HSM_ST_TMOUT; | ||
2751 | 2750 | ||
2752 | switch (ap->hsm_task_state) { | 2751 | switch (ap->hsm_task_state) { |
2753 | case HSM_ST: | 2752 | case HSM_ST: |
@@ -2768,7 +2767,7 @@ static unsigned long ata_pio_poll(struct ata_port *ap) | |||
2768 | status = ata_chk_status(ap); | 2767 | status = ata_chk_status(ap); |
2769 | if (status & ATA_BUSY) { | 2768 | if (status & ATA_BUSY) { |
2770 | if (time_after(jiffies, ap->pio_task_timeout)) { | 2769 | if (time_after(jiffies, ap->pio_task_timeout)) { |
2771 | ap->hsm_task_state = tmout_state; | 2770 | ap->hsm_task_state = HSM_ST_TMOUT; |
2772 | return 0; | 2771 | return 0; |
2773 | } | 2772 | } |
2774 | ap->hsm_task_state = poll_state; | 2773 | ap->hsm_task_state = poll_state; |
@@ -3478,7 +3477,7 @@ void ata_qc_free(struct ata_queued_cmd *qc) | |||
3478 | /** | 3477 | /** |
3479 | * ata_qc_complete - Complete an active ATA command | 3478 | * ata_qc_complete - Complete an active ATA command |
3480 | * @qc: Command to complete | 3479 | * @qc: Command to complete |
3481 | * @drv_stat: ATA Status register contents | 3480 | * @err_mask: ATA Status register contents |
3482 | * | 3481 | * |
3483 | * Indicate to the mid and upper layers that an ATA | 3482 | * Indicate to the mid and upper layers that an ATA |
3484 | * command has completed, with either an ok or not-ok status. | 3483 | * command has completed, with either an ok or not-ok status. |
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c index eb604b0a8990..bb30fcdc9297 100644 --- a/drivers/scsi/libata-scsi.c +++ b/drivers/scsi/libata-scsi.c | |||
@@ -37,9 +37,9 @@ | |||
37 | #include <linux/blkdev.h> | 37 | #include <linux/blkdev.h> |
38 | #include <linux/spinlock.h> | 38 | #include <linux/spinlock.h> |
39 | #include <scsi/scsi.h> | 39 | #include <scsi/scsi.h> |
40 | #include "scsi.h" | ||
41 | #include <scsi/scsi_host.h> | 40 | #include <scsi/scsi_host.h> |
42 | #include <scsi/scsi_device.h> | 41 | #include <scsi/scsi_device.h> |
42 | #include <scsi/scsi_request.h> | ||
43 | #include <linux/libata.h> | 43 | #include <linux/libata.h> |
44 | #include <linux/hdreg.h> | 44 | #include <linux/hdreg.h> |
45 | #include <asm/uaccess.h> | 45 | #include <asm/uaccess.h> |
@@ -131,7 +131,7 @@ int ata_std_bios_param(struct scsi_device *sdev, struct block_device *bdev, | |||
131 | 131 | ||
132 | /** | 132 | /** |
133 | * ata_cmd_ioctl - Handler for HDIO_DRIVE_CMD ioctl | 133 | * ata_cmd_ioctl - Handler for HDIO_DRIVE_CMD ioctl |
134 | * @dev: Device to whom we are issuing command | 134 | * @scsidev: Device to which we are issuing command |
135 | * @arg: User provided data for issuing command | 135 | * @arg: User provided data for issuing command |
136 | * | 136 | * |
137 | * LOCKING: | 137 | * LOCKING: |
@@ -217,7 +217,7 @@ error: | |||
217 | 217 | ||
218 | /** | 218 | /** |
219 | * ata_task_ioctl - Handler for HDIO_DRIVE_TASK ioctl | 219 | * ata_task_ioctl - Handler for HDIO_DRIVE_TASK ioctl |
220 | * @dev: Device to whom we are issuing command | 220 | * @scsidev: Device to which we are issuing command |
221 | * @arg: User provided data for issuing command | 221 | * @arg: User provided data for issuing command |
222 | * | 222 | * |
223 | * LOCKING: | 223 | * LOCKING: |
@@ -416,6 +416,7 @@ void ata_dump_status(unsigned id, struct ata_taskfile *tf) | |||
416 | 416 | ||
417 | /** | 417 | /** |
418 | * ata_to_sense_error - convert ATA error to SCSI error | 418 | * ata_to_sense_error - convert ATA error to SCSI error |
419 | * @id: ATA device number | ||
419 | * @drv_stat: value contained in ATA status register | 420 | * @drv_stat: value contained in ATA status register |
420 | * @drv_err: value contained in ATA error register | 421 | * @drv_err: value contained in ATA error register |
421 | * @sk: the sense key we'll fill out | 422 | * @sk: the sense key we'll fill out |
@@ -2231,7 +2232,7 @@ ata_scsi_map_proto(u8 byte1) | |||
2231 | /** | 2232 | /** |
2232 | * ata_scsi_pass_thru - convert ATA pass-thru CDB to taskfile | 2233 | * ata_scsi_pass_thru - convert ATA pass-thru CDB to taskfile |
2233 | * @qc: command structure to be initialized | 2234 | * @qc: command structure to be initialized |
2234 | * @cmd: SCSI command to convert | 2235 | * @scsicmd: SCSI command to convert |
2235 | * | 2236 | * |
2236 | * Handles either 12 or 16-byte versions of the CDB. | 2237 | * Handles either 12 or 16-byte versions of the CDB. |
2237 | * | 2238 | * |
diff --git a/drivers/scsi/pdc_adma.c b/drivers/scsi/pdc_adma.c index a50588c60fab..78b4ff117af6 100644 --- a/drivers/scsi/pdc_adma.c +++ b/drivers/scsi/pdc_adma.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include <linux/interrupt.h> | 41 | #include <linux/interrupt.h> |
42 | #include <linux/sched.h> | 42 | #include <linux/sched.h> |
43 | #include <linux/device.h> | 43 | #include <linux/device.h> |
44 | #include "scsi.h" | ||
45 | #include <scsi/scsi_host.h> | 44 | #include <scsi/scsi_host.h> |
46 | #include <asm/io.h> | 45 | #include <asm/io.h> |
47 | #include <linux/libata.h> | 46 | #include <linux/libata.h> |
@@ -139,7 +138,7 @@ static u8 adma_bmdma_status(struct ata_port *ap); | |||
139 | static void adma_irq_clear(struct ata_port *ap); | 138 | static void adma_irq_clear(struct ata_port *ap); |
140 | static void adma_eng_timeout(struct ata_port *ap); | 139 | static void adma_eng_timeout(struct ata_port *ap); |
141 | 140 | ||
142 | static Scsi_Host_Template adma_ata_sht = { | 141 | static struct scsi_host_template adma_ata_sht = { |
143 | .module = THIS_MODULE, | 142 | .module = THIS_MODULE, |
144 | .name = DRV_NAME, | 143 | .name = DRV_NAME, |
145 | .ioctl = ata_scsi_ioctl, | 144 | .ioctl = ata_scsi_ioctl, |
diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c index 0f469e3dabe2..93d55233af7b 100644 --- a/drivers/scsi/sata_mv.c +++ b/drivers/scsi/sata_mv.c | |||
@@ -30,8 +30,8 @@ | |||
30 | #include <linux/sched.h> | 30 | #include <linux/sched.h> |
31 | #include <linux/dma-mapping.h> | 31 | #include <linux/dma-mapping.h> |
32 | #include <linux/device.h> | 32 | #include <linux/device.h> |
33 | #include "scsi.h" | ||
34 | #include <scsi/scsi_host.h> | 33 | #include <scsi/scsi_host.h> |
34 | #include <scsi/scsi_cmnd.h> | ||
35 | #include <linux/libata.h> | 35 | #include <linux/libata.h> |
36 | #include <asm/io.h> | 36 | #include <asm/io.h> |
37 | 37 | ||
@@ -270,7 +270,7 @@ static irqreturn_t mv_interrupt(int irq, void *dev_instance, | |||
270 | static void mv_eng_timeout(struct ata_port *ap); | 270 | static void mv_eng_timeout(struct ata_port *ap); |
271 | static int mv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent); | 271 | static int mv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent); |
272 | 272 | ||
273 | static Scsi_Host_Template mv_sht = { | 273 | static struct scsi_host_template mv_sht = { |
274 | .module = THIS_MODULE, | 274 | .module = THIS_MODULE, |
275 | .name = DRV_NAME, | 275 | .name = DRV_NAME, |
276 | .ioctl = ata_scsi_ioctl, | 276 | .ioctl = ata_scsi_ioctl, |
diff --git a/drivers/scsi/sata_nv.c b/drivers/scsi/sata_nv.c index d573888eda76..37a4fae95ed4 100644 --- a/drivers/scsi/sata_nv.c +++ b/drivers/scsi/sata_nv.c | |||
@@ -62,7 +62,6 @@ | |||
62 | #include <linux/delay.h> | 62 | #include <linux/delay.h> |
63 | #include <linux/interrupt.h> | 63 | #include <linux/interrupt.h> |
64 | #include <linux/device.h> | 64 | #include <linux/device.h> |
65 | #include "scsi.h" | ||
66 | #include <scsi/scsi_host.h> | 65 | #include <scsi/scsi_host.h> |
67 | #include <linux/libata.h> | 66 | #include <linux/libata.h> |
68 | 67 | ||
@@ -219,7 +218,7 @@ static struct pci_driver nv_pci_driver = { | |||
219 | .remove = ata_pci_remove_one, | 218 | .remove = ata_pci_remove_one, |
220 | }; | 219 | }; |
221 | 220 | ||
222 | static Scsi_Host_Template nv_sht = { | 221 | static struct scsi_host_template nv_sht = { |
223 | .module = THIS_MODULE, | 222 | .module = THIS_MODULE, |
224 | .name = DRV_NAME, | 223 | .name = DRV_NAME, |
225 | .ioctl = ata_scsi_ioctl, | 224 | .ioctl = ata_scsi_ioctl, |
diff --git a/drivers/scsi/sata_promise.c b/drivers/scsi/sata_promise.c index b41c977d6fab..9edc9d91efc3 100644 --- a/drivers/scsi/sata_promise.c +++ b/drivers/scsi/sata_promise.c | |||
@@ -39,8 +39,8 @@ | |||
39 | #include <linux/interrupt.h> | 39 | #include <linux/interrupt.h> |
40 | #include <linux/sched.h> | 40 | #include <linux/sched.h> |
41 | #include <linux/device.h> | 41 | #include <linux/device.h> |
42 | #include "scsi.h" | ||
43 | #include <scsi/scsi_host.h> | 42 | #include <scsi/scsi_host.h> |
43 | #include <scsi/scsi_cmnd.h> | ||
44 | #include <linux/libata.h> | 44 | #include <linux/libata.h> |
45 | #include <asm/io.h> | 45 | #include <asm/io.h> |
46 | #include "sata_promise.h" | 46 | #include "sata_promise.h" |
@@ -94,7 +94,7 @@ static void pdc_irq_clear(struct ata_port *ap); | |||
94 | static int pdc_qc_issue_prot(struct ata_queued_cmd *qc); | 94 | static int pdc_qc_issue_prot(struct ata_queued_cmd *qc); |
95 | 95 | ||
96 | 96 | ||
97 | static Scsi_Host_Template pdc_ata_sht = { | 97 | static struct scsi_host_template pdc_ata_sht = { |
98 | .module = THIS_MODULE, | 98 | .module = THIS_MODULE, |
99 | .name = DRV_NAME, | 99 | .name = DRV_NAME, |
100 | .ioctl = ata_scsi_ioctl, | 100 | .ioctl = ata_scsi_ioctl, |
diff --git a/drivers/scsi/sata_qstor.c b/drivers/scsi/sata_qstor.c index 65502c157a54..d274ab235781 100644 --- a/drivers/scsi/sata_qstor.c +++ b/drivers/scsi/sata_qstor.c | |||
@@ -36,7 +36,6 @@ | |||
36 | #include <linux/interrupt.h> | 36 | #include <linux/interrupt.h> |
37 | #include <linux/sched.h> | 37 | #include <linux/sched.h> |
38 | #include <linux/device.h> | 38 | #include <linux/device.h> |
39 | #include "scsi.h" | ||
40 | #include <scsi/scsi_host.h> | 39 | #include <scsi/scsi_host.h> |
41 | #include <asm/io.h> | 40 | #include <asm/io.h> |
42 | #include <linux/libata.h> | 41 | #include <linux/libata.h> |
@@ -128,7 +127,7 @@ static u8 qs_bmdma_status(struct ata_port *ap); | |||
128 | static void qs_irq_clear(struct ata_port *ap); | 127 | static void qs_irq_clear(struct ata_port *ap); |
129 | static void qs_eng_timeout(struct ata_port *ap); | 128 | static void qs_eng_timeout(struct ata_port *ap); |
130 | 129 | ||
131 | static Scsi_Host_Template qs_ata_sht = { | 130 | static struct scsi_host_template qs_ata_sht = { |
132 | .module = THIS_MODULE, | 131 | .module = THIS_MODULE, |
133 | .name = DRV_NAME, | 132 | .name = DRV_NAME, |
134 | .ioctl = ata_scsi_ioctl, | 133 | .ioctl = ata_scsi_ioctl, |
diff --git a/drivers/scsi/sata_sil.c b/drivers/scsi/sata_sil.c index 435f7e0085ec..d0e3c3c6c25f 100644 --- a/drivers/scsi/sata_sil.c +++ b/drivers/scsi/sata_sil.c | |||
@@ -42,7 +42,6 @@ | |||
42 | #include <linux/delay.h> | 42 | #include <linux/delay.h> |
43 | #include <linux/interrupt.h> | 43 | #include <linux/interrupt.h> |
44 | #include <linux/device.h> | 44 | #include <linux/device.h> |
45 | #include "scsi.h" | ||
46 | #include <scsi/scsi_host.h> | 45 | #include <scsi/scsi_host.h> |
47 | #include <linux/libata.h> | 46 | #include <linux/libata.h> |
48 | 47 | ||
@@ -131,7 +130,7 @@ static struct pci_driver sil_pci_driver = { | |||
131 | .remove = ata_pci_remove_one, | 130 | .remove = ata_pci_remove_one, |
132 | }; | 131 | }; |
133 | 132 | ||
134 | static Scsi_Host_Template sil_sht = { | 133 | static struct scsi_host_template sil_sht = { |
135 | .module = THIS_MODULE, | 134 | .module = THIS_MODULE, |
136 | .name = DRV_NAME, | 135 | .name = DRV_NAME, |
137 | .ioctl = ata_scsi_ioctl, | 136 | .ioctl = ata_scsi_ioctl, |
diff --git a/drivers/scsi/sata_sil24.c b/drivers/scsi/sata_sil24.c index e6c8e89c226f..4682a50650b4 100644 --- a/drivers/scsi/sata_sil24.c +++ b/drivers/scsi/sata_sil24.c | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <linux/dma-mapping.h> | 37 | #include <linux/dma-mapping.h> |
38 | #include <linux/device.h> | 38 | #include <linux/device.h> |
39 | #include <scsi/scsi_host.h> | 39 | #include <scsi/scsi_host.h> |
40 | #include "scsi.h" | 40 | #include <scsi/scsi_cmnd.h> |
41 | #include <linux/libata.h> | 41 | #include <linux/libata.h> |
42 | #include <asm/io.h> | 42 | #include <asm/io.h> |
43 | 43 | ||
@@ -255,7 +255,7 @@ static struct pci_driver sil24_pci_driver = { | |||
255 | .remove = ata_pci_remove_one, /* safe? */ | 255 | .remove = ata_pci_remove_one, /* safe? */ |
256 | }; | 256 | }; |
257 | 257 | ||
258 | static Scsi_Host_Template sil24_sht = { | 258 | static struct scsi_host_template sil24_sht = { |
259 | .module = THIS_MODULE, | 259 | .module = THIS_MODULE, |
260 | .name = DRV_NAME, | 260 | .name = DRV_NAME, |
261 | .ioctl = ata_scsi_ioctl, | 261 | .ioctl = ata_scsi_ioctl, |
diff --git a/drivers/scsi/sata_sis.c b/drivers/scsi/sata_sis.c index 42288be0e561..42d7c4e92501 100644 --- a/drivers/scsi/sata_sis.c +++ b/drivers/scsi/sata_sis.c | |||
@@ -39,7 +39,6 @@ | |||
39 | #include <linux/delay.h> | 39 | #include <linux/delay.h> |
40 | #include <linux/interrupt.h> | 40 | #include <linux/interrupt.h> |
41 | #include <linux/device.h> | 41 | #include <linux/device.h> |
42 | #include "scsi.h" | ||
43 | #include <scsi/scsi_host.h> | 42 | #include <scsi/scsi_host.h> |
44 | #include <linux/libata.h> | 43 | #include <linux/libata.h> |
45 | 44 | ||
@@ -83,7 +82,7 @@ static struct pci_driver sis_pci_driver = { | |||
83 | .remove = ata_pci_remove_one, | 82 | .remove = ata_pci_remove_one, |
84 | }; | 83 | }; |
85 | 84 | ||
86 | static Scsi_Host_Template sis_sht = { | 85 | static struct scsi_host_template sis_sht = { |
87 | .module = THIS_MODULE, | 86 | .module = THIS_MODULE, |
88 | .name = DRV_NAME, | 87 | .name = DRV_NAME, |
89 | .ioctl = ata_scsi_ioctl, | 88 | .ioctl = ata_scsi_ioctl, |
diff --git a/drivers/scsi/sata_svw.c b/drivers/scsi/sata_svw.c index db615ff794d8..9895d1caefcf 100644 --- a/drivers/scsi/sata_svw.c +++ b/drivers/scsi/sata_svw.c | |||
@@ -45,7 +45,6 @@ | |||
45 | #include <linux/delay.h> | 45 | #include <linux/delay.h> |
46 | #include <linux/interrupt.h> | 46 | #include <linux/interrupt.h> |
47 | #include <linux/device.h> | 47 | #include <linux/device.h> |
48 | #include "scsi.h" | ||
49 | #include <scsi/scsi_host.h> | 48 | #include <scsi/scsi_host.h> |
50 | #include <linux/libata.h> | 49 | #include <linux/libata.h> |
51 | 50 | ||
@@ -284,7 +283,7 @@ static int k2_sata_proc_info(struct Scsi_Host *shost, char *page, char **start, | |||
284 | #endif /* CONFIG_PPC_OF */ | 283 | #endif /* CONFIG_PPC_OF */ |
285 | 284 | ||
286 | 285 | ||
287 | static Scsi_Host_Template k2_sata_sht = { | 286 | static struct scsi_host_template k2_sata_sht = { |
288 | .module = THIS_MODULE, | 287 | .module = THIS_MODULE, |
289 | .name = DRV_NAME, | 288 | .name = DRV_NAME, |
290 | .ioctl = ata_scsi_ioctl, | 289 | .ioctl = ata_scsi_ioctl, |
diff --git a/drivers/scsi/sata_sx4.c b/drivers/scsi/sata_sx4.c index f859bbd681ed..d5a38784352b 100644 --- a/drivers/scsi/sata_sx4.c +++ b/drivers/scsi/sata_sx4.c | |||
@@ -39,8 +39,8 @@ | |||
39 | #include <linux/interrupt.h> | 39 | #include <linux/interrupt.h> |
40 | #include <linux/sched.h> | 40 | #include <linux/sched.h> |
41 | #include <linux/device.h> | 41 | #include <linux/device.h> |
42 | #include "scsi.h" | ||
43 | #include <scsi/scsi_host.h> | 42 | #include <scsi/scsi_host.h> |
43 | #include <scsi/scsi_cmnd.h> | ||
44 | #include <linux/libata.h> | 44 | #include <linux/libata.h> |
45 | #include <asm/io.h> | 45 | #include <asm/io.h> |
46 | #include "sata_promise.h" | 46 | #include "sata_promise.h" |
@@ -177,7 +177,7 @@ static void pdc20621_irq_clear(struct ata_port *ap); | |||
177 | static int pdc20621_qc_issue_prot(struct ata_queued_cmd *qc); | 177 | static int pdc20621_qc_issue_prot(struct ata_queued_cmd *qc); |
178 | 178 | ||
179 | 179 | ||
180 | static Scsi_Host_Template pdc_sata_sht = { | 180 | static struct scsi_host_template pdc_sata_sht = { |
181 | .module = THIS_MODULE, | 181 | .module = THIS_MODULE, |
182 | .name = DRV_NAME, | 182 | .name = DRV_NAME, |
183 | .ioctl = ata_scsi_ioctl, | 183 | .ioctl = ata_scsi_ioctl, |
diff --git a/drivers/scsi/sata_uli.c b/drivers/scsi/sata_uli.c index a5e245c098e1..cf0baaa4e045 100644 --- a/drivers/scsi/sata_uli.c +++ b/drivers/scsi/sata_uli.c | |||
@@ -33,7 +33,6 @@ | |||
33 | #include <linux/delay.h> | 33 | #include <linux/delay.h> |
34 | #include <linux/interrupt.h> | 34 | #include <linux/interrupt.h> |
35 | #include <linux/device.h> | 35 | #include <linux/device.h> |
36 | #include "scsi.h" | ||
37 | #include <scsi/scsi_host.h> | 36 | #include <scsi/scsi_host.h> |
38 | #include <linux/libata.h> | 37 | #include <linux/libata.h> |
39 | 38 | ||
@@ -71,7 +70,7 @@ static struct pci_driver uli_pci_driver = { | |||
71 | .remove = ata_pci_remove_one, | 70 | .remove = ata_pci_remove_one, |
72 | }; | 71 | }; |
73 | 72 | ||
74 | static Scsi_Host_Template uli_sht = { | 73 | static struct scsi_host_template uli_sht = { |
75 | .module = THIS_MODULE, | 74 | .module = THIS_MODULE, |
76 | .name = DRV_NAME, | 75 | .name = DRV_NAME, |
77 | .ioctl = ata_scsi_ioctl, | 76 | .ioctl = ata_scsi_ioctl, |
diff --git a/drivers/scsi/sata_via.c b/drivers/scsi/sata_via.c index b3ecdbe400e9..ab19d2ba2a4b 100644 --- a/drivers/scsi/sata_via.c +++ b/drivers/scsi/sata_via.c | |||
@@ -42,7 +42,6 @@ | |||
42 | #include <linux/blkdev.h> | 42 | #include <linux/blkdev.h> |
43 | #include <linux/delay.h> | 43 | #include <linux/delay.h> |
44 | #include <linux/device.h> | 44 | #include <linux/device.h> |
45 | #include "scsi.h" | ||
46 | #include <scsi/scsi_host.h> | 45 | #include <scsi/scsi_host.h> |
47 | #include <linux/libata.h> | 46 | #include <linux/libata.h> |
48 | #include <asm/io.h> | 47 | #include <asm/io.h> |
@@ -90,7 +89,7 @@ static struct pci_driver svia_pci_driver = { | |||
90 | .remove = ata_pci_remove_one, | 89 | .remove = ata_pci_remove_one, |
91 | }; | 90 | }; |
92 | 91 | ||
93 | static Scsi_Host_Template svia_sht = { | 92 | static struct scsi_host_template svia_sht = { |
94 | .module = THIS_MODULE, | 93 | .module = THIS_MODULE, |
95 | .name = DRV_NAME, | 94 | .name = DRV_NAME, |
96 | .ioctl = ata_scsi_ioctl, | 95 | .ioctl = ata_scsi_ioctl, |
diff --git a/drivers/scsi/sata_vsc.c b/drivers/scsi/sata_vsc.c index bb84ba0c7e83..ce8a2fd7da84 100644 --- a/drivers/scsi/sata_vsc.c +++ b/drivers/scsi/sata_vsc.c | |||
@@ -43,7 +43,6 @@ | |||
43 | #include <linux/interrupt.h> | 43 | #include <linux/interrupt.h> |
44 | #include <linux/dma-mapping.h> | 44 | #include <linux/dma-mapping.h> |
45 | #include <linux/device.h> | 45 | #include <linux/device.h> |
46 | #include "scsi.h" | ||
47 | #include <scsi/scsi_host.h> | 46 | #include <scsi/scsi_host.h> |
48 | #include <linux/libata.h> | 47 | #include <linux/libata.h> |
49 | 48 | ||
@@ -219,7 +218,7 @@ static irqreturn_t vsc_sata_interrupt (int irq, void *dev_instance, | |||
219 | } | 218 | } |
220 | 219 | ||
221 | 220 | ||
222 | static Scsi_Host_Template vsc_sata_sht = { | 221 | static struct scsi_host_template vsc_sata_sht = { |
223 | .module = THIS_MODULE, | 222 | .module = THIS_MODULE, |
224 | .name = DRV_NAME, | 223 | .name = DRV_NAME, |
225 | .ioctl = ata_scsi_ioctl, | 224 | .ioctl = ata_scsi_ioctl, |
diff --git a/include/linux/libata.h b/include/linux/libata.h index dcd17e7458ab..6f0752219f64 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -214,7 +214,7 @@ struct ata_probe_ent { | |||
214 | struct list_head node; | 214 | struct list_head node; |
215 | struct device *dev; | 215 | struct device *dev; |
216 | const struct ata_port_operations *port_ops; | 216 | const struct ata_port_operations *port_ops; |
217 | Scsi_Host_Template *sht; | 217 | struct scsi_host_template *sht; |
218 | struct ata_ioports port[ATA_MAX_PORTS]; | 218 | struct ata_ioports port[ATA_MAX_PORTS]; |
219 | unsigned int n_ports; | 219 | unsigned int n_ports; |
220 | unsigned int hard_port_no; | 220 | unsigned int hard_port_no; |
@@ -398,7 +398,7 @@ struct ata_port_operations { | |||
398 | }; | 398 | }; |
399 | 399 | ||
400 | struct ata_port_info { | 400 | struct ata_port_info { |
401 | Scsi_Host_Template *sht; | 401 | struct scsi_host_template *sht; |
402 | unsigned long host_flags; | 402 | unsigned long host_flags; |
403 | unsigned long pio_mask; | 403 | unsigned long pio_mask; |
404 | unsigned long mwdma_mask; | 404 | unsigned long mwdma_mask; |
@@ -433,7 +433,7 @@ extern void ata_pci_remove_one (struct pci_dev *pdev); | |||
433 | #endif /* CONFIG_PCI */ | 433 | #endif /* CONFIG_PCI */ |
434 | extern int ata_device_add(const struct ata_probe_ent *ent); | 434 | extern int ata_device_add(const struct ata_probe_ent *ent); |
435 | extern void ata_host_set_remove(struct ata_host_set *host_set); | 435 | extern void ata_host_set_remove(struct ata_host_set *host_set); |
436 | extern int ata_scsi_detect(Scsi_Host_Template *sht); | 436 | extern int ata_scsi_detect(struct scsi_host_template *sht); |
437 | extern int ata_scsi_ioctl(struct scsi_device *dev, int cmd, void __user *arg); | 437 | extern int ata_scsi_ioctl(struct scsi_device *dev, int cmd, void __user *arg); |
438 | extern int ata_scsi_queuecmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *)); | 438 | extern int ata_scsi_queuecmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *)); |
439 | extern int ata_scsi_error(struct Scsi_Host *host); | 439 | extern int ata_scsi_error(struct Scsi_Host *host); |