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/pata_hpt366.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/pata_hpt366.c')
-rw-r--r-- | drivers/ata/pata_hpt366.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_hpt366.c b/drivers/ata/pata_hpt366.c index e9ad4eba0670..c3e5ea35e0f8 100644 --- a/drivers/ata/pata_hpt366.c +++ b/drivers/ata/pata_hpt366.c | |||
@@ -175,7 +175,7 @@ static int hpt_dma_blacklisted(const struct ata_device *dev, char *modestr, cons | |||
175 | * Block UDMA on devices that cause trouble with this controller. | 175 | * Block UDMA on devices that cause trouble with this controller. |
176 | */ | 176 | */ |
177 | 177 | ||
178 | static unsigned long hpt366_filter(const struct ata_port *ap, struct ata_device *adev, unsigned long mask) | 178 | static unsigned long hpt366_filter(struct ata_device *adev, unsigned long mask) |
179 | { | 179 | { |
180 | if (adev->class == ATA_DEV_ATA) { | 180 | if (adev->class == ATA_DEV_ATA) { |
181 | if (hpt_dma_blacklisted(adev, "UDMA", bad_ata33)) | 181 | if (hpt_dma_blacklisted(adev, "UDMA", bad_ata33)) |
@@ -185,7 +185,7 @@ static unsigned long hpt366_filter(const struct ata_port *ap, struct ata_device | |||
185 | if (hpt_dma_blacklisted(adev, "UDMA4", bad_ata66_4)) | 185 | if (hpt_dma_blacklisted(adev, "UDMA4", bad_ata66_4)) |
186 | mask &= ~(0x0F << ATA_SHIFT_UDMA); | 186 | mask &= ~(0x0F << ATA_SHIFT_UDMA); |
187 | } | 187 | } |
188 | return ata_pci_default_filter(ap, adev, mask); | 188 | return ata_pci_default_filter(adev, mask); |
189 | } | 189 | } |
190 | 190 | ||
191 | /** | 191 | /** |