diff options
author | Alan Cox <alan@redhat.com> | 2007-03-09 09:34:07 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 14:15:58 -0400 |
commit | a76b62ca70662cd0ca98edf366c6637009a95f7d (patch) | |
tree | 1f93b3bec4a77ed3146a1d9de29140c525b35479 /drivers/ata/libata-sff.c | |
parent | 9d2c7c75f889a3eefad016c71f651b0796e0a6e9 (diff) |
libata: Change prototype of mode_filter to remove ata_port*
With Tejun having added adev->ap some time ago we can get rid of the
almost unused port being passed to mode filters. And while we are
doing filters, lets turn on the !IORDY filter as well.
Signed-off-by: Alan Cox <alan@redhat.com>
With some hand massaging from
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/libata-sff.c')
-rw-r--r-- | drivers/ata/libata-sff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 2ffcca063d80..066689c5e509 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c | |||
@@ -893,12 +893,12 @@ int ata_pci_clear_simplex(struct pci_dev *pdev) | |||
893 | return 0; | 893 | return 0; |
894 | } | 894 | } |
895 | 895 | ||
896 | unsigned long ata_pci_default_filter(const struct ata_port *ap, struct ata_device *adev, unsigned long xfer_mask) | 896 | unsigned long ata_pci_default_filter(struct ata_device *adev, unsigned long xfer_mask) |
897 | { | 897 | { |
898 | /* Filter out DMA modes if the device has been configured by | 898 | /* Filter out DMA modes if the device has been configured by |
899 | the BIOS as PIO only */ | 899 | the BIOS as PIO only */ |
900 | 900 | ||
901 | if (ap->ioaddr.bmdma_addr == 0) | 901 | if (adev->ap->ioaddr.bmdma_addr == 0) |
902 | xfer_mask &= ~(ATA_MASK_MWDMA | ATA_MASK_UDMA); | 902 | xfer_mask &= ~(ATA_MASK_MWDMA | ATA_MASK_UDMA); |
903 | return xfer_mask; | 903 | return xfer_mask; |
904 | } | 904 | } |