diff options
Diffstat (limited to 'drivers/ata/sata_sil24.c')
-rw-r--r-- | drivers/ata/sata_sil24.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c index 5614df8c1ce2..6698c746e624 100644 --- a/drivers/ata/sata_sil24.c +++ b/drivers/ata/sata_sil24.c | |||
@@ -323,7 +323,7 @@ struct sil24_port_priv { | |||
323 | struct ata_taskfile tf; /* Cached taskfile registers */ | 323 | struct ata_taskfile tf; /* Cached taskfile registers */ |
324 | }; | 324 | }; |
325 | 325 | ||
326 | static void sil24_dev_config(struct ata_port *ap, struct ata_device *dev); | 326 | static void sil24_dev_config(struct ata_device *dev); |
327 | static u8 sil24_check_status(struct ata_port *ap); | 327 | static u8 sil24_check_status(struct ata_port *ap); |
328 | static u32 sil24_scr_read(struct ata_port *ap, unsigned sc_reg); | 328 | static u32 sil24_scr_read(struct ata_port *ap, unsigned sc_reg); |
329 | static void sil24_scr_write(struct ata_port *ap, unsigned sc_reg, u32 val); | 329 | static void sil24_scr_write(struct ata_port *ap, unsigned sc_reg, u32 val); |
@@ -462,9 +462,9 @@ static int sil24_tag(int tag) | |||
462 | return tag; | 462 | return tag; |
463 | } | 463 | } |
464 | 464 | ||
465 | static void sil24_dev_config(struct ata_port *ap, struct ata_device *dev) | 465 | static void sil24_dev_config(struct ata_device *dev) |
466 | { | 466 | { |
467 | void __iomem *port = ap->ioaddr.cmd_addr; | 467 | void __iomem *port = dev->ap->ioaddr.cmd_addr; |
468 | 468 | ||
469 | if (dev->cdb_len == 16) | 469 | if (dev->cdb_len == 16) |
470 | writel(PORT_CS_CDB16, port + PORT_CTRL_STAT); | 470 | writel(PORT_CS_CDB16, port + PORT_CTRL_STAT); |