Commit 6b6f5ccb authored by Jeff Garzik's avatar Jeff Garzik

[libata] fix Promise build on older compilers

parent 0b6af2d8
...@@ -728,9 +728,9 @@ static inline unsigned int pdc20621_host_intr( struct ata_port *ap, ...@@ -728,9 +728,9 @@ static inline unsigned int pdc20621_host_intr( struct ata_port *ap,
/* step one - exec ATA command */ /* step one - exec ATA command */
else { else {
u8 seq = (u8) (port_no + 1 + 4);
VPRINTK("ata%u: read ata, 0x%x 0x%x\n", ap->id, VPRINTK("ata%u: read ata, 0x%x 0x%x\n", ap->id,
readl(mmio + 0x104), readl(mmio + 0x12c)); readl(mmio + 0x104), readl(mmio + 0x12c));
u8 seq = (u8) (port_no + 1 + 4);
/* submit hdma pkt */ /* submit hdma pkt */
writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4)); writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4));
...@@ -747,9 +747,9 @@ static inline unsigned int pdc20621_host_intr( struct ata_port *ap, ...@@ -747,9 +747,9 @@ static inline unsigned int pdc20621_host_intr( struct ata_port *ap,
case ATA_PROT_DMA_WRITE: case ATA_PROT_DMA_WRITE:
/* step one - DMA from host to DIMM */ /* step one - DMA from host to DIMM */
if (doing_hdma) { if (doing_hdma) {
u8 seq = (u8) (port_no + 1);
VPRINTK("ata%u: write hdma, 0x%x 0x%x\n", ap->id, VPRINTK("ata%u: write hdma, 0x%x 0x%x\n", ap->id,
readl(mmio + 0x104), readl(mmio + 0x12c)); readl(mmio + 0x104), readl(mmio + 0x12c));
u8 seq = (u8) (port_no + 1);
/* submit ata pkt */ /* submit ata pkt */
writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4)); writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment