diff options
Diffstat (limited to 'drivers/scsi/sata_promise.c')
-rw-r--r-- | drivers/scsi/sata_promise.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/scsi/sata_promise.c b/drivers/scsi/sata_promise.c index f67deb0a55c9..9ca07becc49a 100644 --- a/drivers/scsi/sata_promise.c +++ b/drivers/scsi/sata_promise.c | |||
@@ -87,8 +87,8 @@ static void pdc_port_stop(struct ata_port *ap); | |||
87 | static void pdc_pata_phy_reset(struct ata_port *ap); | 87 | static void pdc_pata_phy_reset(struct ata_port *ap); |
88 | static void pdc_sata_phy_reset(struct ata_port *ap); | 88 | static void pdc_sata_phy_reset(struct ata_port *ap); |
89 | static void pdc_qc_prep(struct ata_queued_cmd *qc); | 89 | static void pdc_qc_prep(struct ata_queued_cmd *qc); |
90 | static void pdc_tf_load_mmio(struct ata_port *ap, struct ata_taskfile *tf); | 90 | static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf); |
91 | static void pdc_exec_command_mmio(struct ata_port *ap, struct ata_taskfile *tf); | 91 | static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf); |
92 | static void pdc_irq_clear(struct ata_port *ap); | 92 | static void pdc_irq_clear(struct ata_port *ap); |
93 | static int pdc_qc_issue_prot(struct ata_queued_cmd *qc); | 93 | static int pdc_qc_issue_prot(struct ata_queued_cmd *qc); |
94 | 94 | ||
@@ -113,7 +113,7 @@ static Scsi_Host_Template pdc_ata_sht = { | |||
113 | .ordered_flush = 1, | 113 | .ordered_flush = 1, |
114 | }; | 114 | }; |
115 | 115 | ||
116 | static struct ata_port_operations pdc_sata_ops = { | 116 | static const struct ata_port_operations pdc_sata_ops = { |
117 | .port_disable = ata_port_disable, | 117 | .port_disable = ata_port_disable, |
118 | .tf_load = pdc_tf_load_mmio, | 118 | .tf_load = pdc_tf_load_mmio, |
119 | .tf_read = ata_tf_read, | 119 | .tf_read = ata_tf_read, |
@@ -136,7 +136,7 @@ static struct ata_port_operations pdc_sata_ops = { | |||
136 | .host_stop = ata_pci_host_stop, | 136 | .host_stop = ata_pci_host_stop, |
137 | }; | 137 | }; |
138 | 138 | ||
139 | static struct ata_port_operations pdc_pata_ops = { | 139 | static const struct ata_port_operations pdc_pata_ops = { |
140 | .port_disable = ata_port_disable, | 140 | .port_disable = ata_port_disable, |
141 | .tf_load = pdc_tf_load_mmio, | 141 | .tf_load = pdc_tf_load_mmio, |
142 | .tf_read = ata_tf_read, | 142 | .tf_read = ata_tf_read, |
@@ -327,7 +327,7 @@ static u32 pdc_sata_scr_read (struct ata_port *ap, unsigned int sc_reg) | |||
327 | { | 327 | { |
328 | if (sc_reg > SCR_CONTROL) | 328 | if (sc_reg > SCR_CONTROL) |
329 | return 0xffffffffU; | 329 | return 0xffffffffU; |
330 | return readl((void *) ap->ioaddr.scr_addr + (sc_reg * 4)); | 330 | return readl((void __iomem *) ap->ioaddr.scr_addr + (sc_reg * 4)); |
331 | } | 331 | } |
332 | 332 | ||
333 | 333 | ||
@@ -336,7 +336,7 @@ static void pdc_sata_scr_write (struct ata_port *ap, unsigned int sc_reg, | |||
336 | { | 336 | { |
337 | if (sc_reg > SCR_CONTROL) | 337 | if (sc_reg > SCR_CONTROL) |
338 | return; | 338 | return; |
339 | writel(val, (void *) ap->ioaddr.scr_addr + (sc_reg * 4)); | 339 | writel(val, (void __iomem *) ap->ioaddr.scr_addr + (sc_reg * 4)); |
340 | } | 340 | } |
341 | 341 | ||
342 | static void pdc_qc_prep(struct ata_queued_cmd *qc) | 342 | static void pdc_qc_prep(struct ata_queued_cmd *qc) |
@@ -526,8 +526,8 @@ static inline void pdc_packet_start(struct ata_queued_cmd *qc) | |||
526 | 526 | ||
527 | pp->pkt[2] = seq; | 527 | pp->pkt[2] = seq; |
528 | wmb(); /* flush PRD, pkt writes */ | 528 | wmb(); /* flush PRD, pkt writes */ |
529 | writel(pp->pkt_dma, (void *) ap->ioaddr.cmd_addr + PDC_PKT_SUBMIT); | 529 | writel(pp->pkt_dma, (void __iomem *) ap->ioaddr.cmd_addr + PDC_PKT_SUBMIT); |
530 | readl((void *) ap->ioaddr.cmd_addr + PDC_PKT_SUBMIT); /* flush */ | 530 | readl((void __iomem *) ap->ioaddr.cmd_addr + PDC_PKT_SUBMIT); /* flush */ |
531 | } | 531 | } |
532 | 532 | ||
533 | static int pdc_qc_issue_prot(struct ata_queued_cmd *qc) | 533 | static int pdc_qc_issue_prot(struct ata_queued_cmd *qc) |
@@ -549,7 +549,7 @@ static int pdc_qc_issue_prot(struct ata_queued_cmd *qc) | |||
549 | return ata_qc_issue_prot(qc); | 549 | return ata_qc_issue_prot(qc); |
550 | } | 550 | } |
551 | 551 | ||
552 | static void pdc_tf_load_mmio(struct ata_port *ap, struct ata_taskfile *tf) | 552 | static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf) |
553 | { | 553 | { |
554 | WARN_ON (tf->protocol == ATA_PROT_DMA || | 554 | WARN_ON (tf->protocol == ATA_PROT_DMA || |
555 | tf->protocol == ATA_PROT_NODATA); | 555 | tf->protocol == ATA_PROT_NODATA); |
@@ -557,7 +557,7 @@ static void pdc_tf_load_mmio(struct ata_port *ap, struct ata_taskfile *tf) | |||
557 | } | 557 | } |
558 | 558 | ||
559 | 559 | ||
560 | static void pdc_exec_command_mmio(struct ata_port *ap, struct ata_taskfile *tf) | 560 | static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf) |
561 | { | 561 | { |
562 | WARN_ON (tf->protocol == ATA_PROT_DMA || | 562 | WARN_ON (tf->protocol == ATA_PROT_DMA || |
563 | tf->protocol == ATA_PROT_NODATA); | 563 | tf->protocol == ATA_PROT_NODATA); |