1
0

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>
This commit is contained in:
Alan
2007-03-02 00:56:15 +00:00
committed by Jeff Garzik
parent d88184fb23
commit cd0d3bbcdd
8 changed files with 12 additions and 14 deletions

View File

@@ -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;
}