diff options
Diffstat (limited to 'drivers/ata/pata_pdc2027x.c')
-rw-r--r-- | drivers/ata/pata_pdc2027x.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c index f619c20dd192..d235c9f92d09 100644 --- a/drivers/ata/pata_pdc2027x.c +++ b/drivers/ata/pata_pdc2027x.c | |||
@@ -63,7 +63,7 @@ enum { | |||
63 | }; | 63 | }; |
64 | 64 | ||
65 | static int pdc2027x_init_one(struct pci_dev *pdev, const struct pci_device_id *ent); | 65 | static int pdc2027x_init_one(struct pci_dev *pdev, const struct pci_device_id *ent); |
66 | static void pdc2027x_error_handler(struct ata_port *ap); | 66 | static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline); |
67 | static void pdc2027x_set_piomode(struct ata_port *ap, struct ata_device *adev); | 67 | static void pdc2027x_set_piomode(struct ata_port *ap, struct ata_device *adev); |
68 | static void pdc2027x_set_dmamode(struct ata_port *ap, struct ata_device *adev); | 68 | static void pdc2027x_set_dmamode(struct ata_port *ap, struct ata_device *adev); |
69 | static int pdc2027x_check_atapi_dma(struct ata_queued_cmd *qc); | 69 | static int pdc2027x_check_atapi_dma(struct ata_queued_cmd *qc); |
@@ -136,7 +136,7 @@ static struct ata_port_operations pdc2027x_pata100_ops = { | |||
136 | .inherits = &ata_bmdma_port_ops, | 136 | .inherits = &ata_bmdma_port_ops, |
137 | .check_atapi_dma = pdc2027x_check_atapi_dma, | 137 | .check_atapi_dma = pdc2027x_check_atapi_dma, |
138 | .cable_detect = pdc2027x_cable_detect, | 138 | .cable_detect = pdc2027x_cable_detect, |
139 | .error_handler = pdc2027x_error_handler, | 139 | .prereset = pdc2027x_prereset, |
140 | }; | 140 | }; |
141 | 141 | ||
142 | static struct ata_port_operations pdc2027x_pata133_ops = { | 142 | static struct ata_port_operations pdc2027x_pata133_ops = { |
@@ -252,21 +252,6 @@ static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline) | |||
252 | } | 252 | } |
253 | 253 | ||
254 | /** | 254 | /** |
255 | * pdc2027x_error_handler - Perform reset on PATA port and classify | ||
256 | * @ap: Port to reset | ||
257 | * | ||
258 | * Reset PATA phy and classify attached devices. | ||
259 | * | ||
260 | * LOCKING: | ||
261 | * None (inherited from caller). | ||
262 | */ | ||
263 | |||
264 | static void pdc2027x_error_handler(struct ata_port *ap) | ||
265 | { | ||
266 | ata_bmdma_drive_eh(ap, pdc2027x_prereset, ata_std_softreset, NULL, ata_std_postreset); | ||
267 | } | ||
268 | |||
269 | /** | ||
270 | * pdc2720x_mode_filter - mode selection filter | 255 | * pdc2720x_mode_filter - mode selection filter |
271 | * @adev: ATA device | 256 | * @adev: ATA device |
272 | * @mask: list of modes proposed | 257 | * @mask: list of modes proposed |