diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-28 12:29:23 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-28 12:29:23 -0400 |
commit | 7a9f8f93d2dad38f30fbc79d8a1e6517373aa4b6 (patch) | |
tree | 9116e5bde860d00685c5b6eee7be5ba9899aabb9 /drivers/scsi/ahci.c | |
parent | 972c26bdd6b58e7534473c4f7928584578cf43f4 (diff) | |
parent | 5fadd053d9bb4345ec6f405d24db4e7eb49cf81e (diff) |
Merge branch 'master'
Diffstat (limited to 'drivers/scsi/ahci.c')
-rw-r--r-- | drivers/scsi/ahci.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c index f0d8f89b5d40..cbab5868ffdf 100644 --- a/drivers/scsi/ahci.c +++ b/drivers/scsi/ahci.c | |||
@@ -216,7 +216,7 @@ static Scsi_Host_Template ahci_sht = { | |||
216 | .ordered_flush = 1, | 216 | .ordered_flush = 1, |
217 | }; | 217 | }; |
218 | 218 | ||
219 | static struct ata_port_operations ahci_ops = { | 219 | static const struct ata_port_operations ahci_ops = { |
220 | .port_disable = ata_port_disable, | 220 | .port_disable = ata_port_disable, |
221 | 221 | ||
222 | .check_status = ahci_check_status, | 222 | .check_status = ahci_check_status, |
@@ -415,7 +415,7 @@ static u32 ahci_scr_read (struct ata_port *ap, unsigned int sc_reg_in) | |||
415 | return 0xffffffffU; | 415 | return 0xffffffffU; |
416 | } | 416 | } |
417 | 417 | ||
418 | return readl((void *) ap->ioaddr.scr_addr + (sc_reg * 4)); | 418 | return readl((void __iomem *) ap->ioaddr.scr_addr + (sc_reg * 4)); |
419 | } | 419 | } |
420 | 420 | ||
421 | 421 | ||
@@ -433,7 +433,7 @@ static void ahci_scr_write (struct ata_port *ap, unsigned int sc_reg_in, | |||
433 | return; | 433 | return; |
434 | } | 434 | } |
435 | 435 | ||
436 | writel(val, (void *) ap->ioaddr.scr_addr + (sc_reg * 4)); | 436 | writel(val, (void __iomem *) ap->ioaddr.scr_addr + (sc_reg * 4)); |
437 | } | 437 | } |
438 | 438 | ||
439 | static void ahci_phy_reset(struct ata_port *ap) | 439 | static void ahci_phy_reset(struct ata_port *ap) |
@@ -461,14 +461,14 @@ static void ahci_phy_reset(struct ata_port *ap) | |||
461 | 461 | ||
462 | static u8 ahci_check_status(struct ata_port *ap) | 462 | static u8 ahci_check_status(struct ata_port *ap) |
463 | { | 463 | { |
464 | void *mmio = (void *) ap->ioaddr.cmd_addr; | 464 | void __iomem *mmio = (void __iomem *) ap->ioaddr.cmd_addr; |
465 | 465 | ||
466 | return readl(mmio + PORT_TFDATA) & 0xFF; | 466 | return readl(mmio + PORT_TFDATA) & 0xFF; |
467 | } | 467 | } |
468 | 468 | ||
469 | static u8 ahci_check_err(struct ata_port *ap) | 469 | static u8 ahci_check_err(struct ata_port *ap) |
470 | { | 470 | { |
471 | void *mmio = (void *) ap->ioaddr.cmd_addr; | 471 | void __iomem *mmio = (void __iomem *) ap->ioaddr.cmd_addr; |
472 | 472 | ||
473 | return (readl(mmio + PORT_TFDATA) >> 8) & 0xFF; | 473 | return (readl(mmio + PORT_TFDATA) >> 8) & 0xFF; |
474 | } | 474 | } |