diff options
author | Alan <alan@lxorguk.ukuu.org.uk> | 2007-03-01 19:56:15 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 14:15:55 -0400 |
commit | cd0d3bbcdd650651b7ccfaf55d107e3fc237d95a (patch) | |
tree | 9c095bdb9056f5b36d3d3640a3f497cabfdd1f92 /drivers/ata/sata_sil24.c | |
parent | d88184fb2348a50f7c34f5d49a901c875b2e0114 (diff) |
libata: dev_config does not need ap and adev passing
It used to be impossible to get from ata_device to ata_port but that is
no longer true. Various methods have been cleaned up over time but
dev_config still takes both and most users don't need both anyway. Tidy
this one up
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
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); |