aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_serverworks.c
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2007-03-09 09:34:07 -0500
committerJeff Garzik <jeff@garzik.org>2007-04-28 14:15:58 -0400
commita76b62ca70662cd0ca98edf366c6637009a95f7d (patch)
tree1f93b3bec4a77ed3146a1d9de29140c525b35479 /drivers/ata/pata_serverworks.c
parent9d2c7c75f889a3eefad016c71f651b0796e0a6e9 (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_serverworks.c')
-rw-r--r--drivers/ata/pata_serverworks.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/ata/pata_serverworks.c b/drivers/ata/pata_serverworks.c
index 283e9afade01..3956ef26936d 100644
--- a/drivers/ata/pata_serverworks.c
+++ b/drivers/ata/pata_serverworks.c
@@ -185,31 +185,31 @@ static u8 serverworks_is_csb(struct pci_dev *pdev)
185 185
186/** 186/**
187 * serverworks_osb4_filter - mode selection filter 187 * serverworks_osb4_filter - mode selection filter
188 * @ap: ATA interface
189 * @adev: ATA device 188 * @adev: ATA device
189 * @mask: Mask of proposed modes
190 * 190 *
191 * Filter the offered modes for the device to apply controller 191 * Filter the offered modes for the device to apply controller
192 * specific rules. OSB4 requires no UDMA for disks due to a FIFO 192 * specific rules. OSB4 requires no UDMA for disks due to a FIFO
193 * bug we hit. 193 * bug we hit.
194 */ 194 */
195 195
196static unsigned long serverworks_osb4_filter(const struct ata_port *ap, struct ata_device *adev, unsigned long mask) 196static unsigned long serverworks_osb4_filter(struct ata_device *adev, unsigned long mask)
197{ 197{
198 if (adev->class == ATA_DEV_ATA) 198 if (adev->class == ATA_DEV_ATA)
199 mask &= ~ATA_MASK_UDMA; 199 mask &= ~ATA_MASK_UDMA;
200 return ata_pci_default_filter(ap, adev, mask); 200 return ata_pci_default_filter(adev, mask);
201} 201}
202 202
203 203
204/** 204/**
205 * serverworks_csb_filter - mode selection filter 205 * serverworks_csb_filter - mode selection filter
206 * @ap: ATA interface
207 * @adev: ATA device 206 * @adev: ATA device
207 * @mask: Mask of proposed modes
208 * 208 *
209 * Check the blacklist and disable UDMA5 if matched 209 * Check the blacklist and disable UDMA5 if matched
210 */ 210 */
211 211
212static unsigned long serverworks_csb_filter(const struct ata_port *ap, struct ata_device *adev, unsigned long mask) 212static unsigned long serverworks_csb_filter(struct ata_device *adev, unsigned long mask)
213{ 213{
214 const char *p; 214 const char *p;
215 char model_num[ATA_ID_PROD_LEN + 1]; 215 char model_num[ATA_ID_PROD_LEN + 1];
@@ -217,7 +217,7 @@ static unsigned long serverworks_csb_filter(const struct ata_port *ap, struct at
217 217
218 /* Disk, UDMA */ 218 /* Disk, UDMA */
219 if (adev->class != ATA_DEV_ATA) 219 if (adev->class != ATA_DEV_ATA)
220 return ata_pci_default_filter(ap, adev, mask); 220 return ata_pci_default_filter(adev, mask);
221 221
222 /* Actually do need to check */ 222 /* Actually do need to check */
223 ata_id_c_string(adev->id, model_num, ATA_ID_PROD, sizeof(model_num)); 223 ata_id_c_string(adev->id, model_num, ATA_ID_PROD, sizeof(model_num));
@@ -226,7 +226,7 @@ static unsigned long serverworks_csb_filter(const struct ata_port *ap, struct at
226 if (!strcmp(p, model_num)) 226 if (!strcmp(p, model_num))
227 mask &= ~(0x1F << ATA_SHIFT_UDMA); 227 mask &= ~(0x1F << ATA_SHIFT_UDMA);
228 } 228 }
229 return ata_pci_default_filter(ap, adev, mask); 229 return ata_pci_default_filter(adev, mask);
230} 230}
231 231
232 232