summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_pdc202xx_old.c
diff options
context:
space:
mode:
authorAlan2007-03-02 01:56:15 +0100
committerJeff Garzik2007-04-28 20:15:55 +0200
commitcd0d3bbcdd650651b7ccfaf55d107e3fc237d95a (patch)
tree9c095bdb9056f5b36d3d3640a3f497cabfdd1f92 /drivers/ata/pata_pdc202xx_old.c
parent[libata] sata_mv: clean up DMA boundary issues, turn on 64-bit DMA (diff)
downloadkernel-qcow2-linux-cd0d3bbcdd650651b7ccfaf55d107e3fc237d95a.tar.gz
kernel-qcow2-linux-cd0d3bbcdd650651b7ccfaf55d107e3fc237d95a.tar.xz
kernel-qcow2-linux-cd0d3bbcdd650651b7ccfaf55d107e3fc237d95a.zip
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_pdc202xx_old.c')
-rw-r--r--drivers/ata/pata_pdc202xx_old.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/pata_pdc202xx_old.c b/drivers/ata/pata_pdc202xx_old.c
index 0a1493398913..a764ce8252aa 100644
--- a/drivers/ata/pata_pdc202xx_old.c
+++ b/drivers/ata/pata_pdc202xx_old.c
@@ -244,7 +244,6 @@ static void pdc2026x_bmdma_stop(struct ata_queued_cmd *qc)
/**
* pdc2026x_dev_config - device setup hook
- * @ap: ATA port
* @adev: newly found device
*
* Perform chip specific early setup. We need to lock the transfer
@@ -252,7 +251,7 @@ static void pdc2026x_bmdma_stop(struct ata_queued_cmd *qc)
* barf.
*/
-static void pdc2026x_dev_config(struct ata_port *ap, struct ata_device *adev)
+static void pdc2026x_dev_config(struct ata_device *adev)
{
adev->max_sectors = 256;
}