aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_it821x.c
diff options
context:
space:
mode:
authorAlan <alan@lxorguk.ukuu.org.uk>2007-03-01 19:56:15 -0500
committerJeff Garzik <jeff@garzik.org>2007-04-28 14:15:55 -0400
commitcd0d3bbcdd650651b7ccfaf55d107e3fc237d95a (patch)
tree9c095bdb9056f5b36d3d3640a3f497cabfdd1f92 /drivers/ata/pata_it821x.c
parentd88184fb2348a50f7c34f5d49a901c875b2e0114 (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/pata_it821x.c')
-rw-r--r--drivers/ata/pata_it821x.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c
index 35ecb2ba067b..be8c9ef8d0d4 100644
--- a/drivers/ata/pata_it821x.c
+++ b/drivers/ata/pata_it821x.c
@@ -520,7 +520,6 @@ static int it821x_smart_set_mode(struct ata_port *ap, struct ata_device **unused
520 520
521/** 521/**
522 * it821x_dev_config - Called each device identify 522 * it821x_dev_config - Called each device identify
523 * @ap: ATA port
524 * @adev: Device that has just been identified 523 * @adev: Device that has just been identified
525 * 524 *
526 * Perform the initial setup needed for each device that is chip 525 * Perform the initial setup needed for each device that is chip
@@ -531,7 +530,7 @@ static int it821x_smart_set_mode(struct ata_port *ap, struct ata_device **unused
531 * basically we need to filter commands for this chip. 530 * basically we need to filter commands for this chip.
532 */ 531 */
533 532
534static void it821x_dev_config(struct ata_port *ap, struct ata_device *adev) 533static void it821x_dev_config(struct ata_device *adev)
535{ 534{
536 unsigned char model_num[ATA_ID_PROD_LEN + 1]; 535 unsigned char model_num[ATA_ID_PROD_LEN + 1];
537 536