diff options
Diffstat (limited to 'drivers/ata/pata_optidma.c')
-rw-r--r-- | drivers/ata/pata_optidma.c | 63 |
1 files changed, 4 insertions, 59 deletions
diff --git a/drivers/ata/pata_optidma.c b/drivers/ata/pata_optidma.c index 7495758a86fe..eb4b08190e3a 100644 --- a/drivers/ata/pata_optidma.c +++ b/drivers/ata/pata_optidma.c | |||
@@ -354,73 +354,18 @@ static struct scsi_host_template optidma_sht = { | |||
354 | }; | 354 | }; |
355 | 355 | ||
356 | static struct ata_port_operations optidma_port_ops = { | 356 | static struct ata_port_operations optidma_port_ops = { |
357 | .inherits = &ata_bmdma_port_ops, | ||
358 | .cable_detect = ata_cable_40wire, | ||
357 | .set_piomode = optidma_set_pio_mode, | 359 | .set_piomode = optidma_set_pio_mode, |
358 | .set_dmamode = optidma_set_dma_mode, | 360 | .set_dmamode = optidma_set_dma_mode, |
359 | .mode_filter = ata_pci_default_filter, | ||
360 | |||
361 | .tf_load = ata_tf_load, | ||
362 | .tf_read = ata_tf_read, | ||
363 | .check_status = ata_check_status, | ||
364 | .exec_command = ata_exec_command, | ||
365 | .dev_select = ata_std_dev_select, | ||
366 | |||
367 | .freeze = ata_bmdma_freeze, | ||
368 | .thaw = ata_bmdma_thaw, | ||
369 | .post_internal_cmd = ata_bmdma_post_internal_cmd, | ||
370 | .error_handler = optidma_error_handler, | ||
371 | .set_mode = optidma_set_mode, | 361 | .set_mode = optidma_set_mode, |
372 | .cable_detect = ata_cable_40wire, | 362 | .error_handler = optidma_error_handler, |
373 | |||
374 | .bmdma_setup = ata_bmdma_setup, | ||
375 | .bmdma_start = ata_bmdma_start, | ||
376 | .bmdma_stop = ata_bmdma_stop, | ||
377 | .bmdma_status = ata_bmdma_status, | ||
378 | |||
379 | .qc_prep = ata_qc_prep, | ||
380 | .qc_issue = ata_qc_issue_prot, | ||
381 | |||
382 | .data_xfer = ata_data_xfer, | ||
383 | |||
384 | .irq_handler = ata_interrupt, | ||
385 | .irq_clear = ata_bmdma_irq_clear, | ||
386 | .irq_on = ata_irq_on, | ||
387 | |||
388 | .port_start = ata_sff_port_start, | ||
389 | }; | 363 | }; |
390 | 364 | ||
391 | static struct ata_port_operations optiplus_port_ops = { | 365 | static struct ata_port_operations optiplus_port_ops = { |
366 | .inherits = &optidma_port_ops, | ||
392 | .set_piomode = optiplus_set_pio_mode, | 367 | .set_piomode = optiplus_set_pio_mode, |
393 | .set_dmamode = optiplus_set_dma_mode, | 368 | .set_dmamode = optiplus_set_dma_mode, |
394 | .mode_filter = ata_pci_default_filter, | ||
395 | |||
396 | .tf_load = ata_tf_load, | ||
397 | .tf_read = ata_tf_read, | ||
398 | .check_status = ata_check_status, | ||
399 | .exec_command = ata_exec_command, | ||
400 | .dev_select = ata_std_dev_select, | ||
401 | |||
402 | .freeze = ata_bmdma_freeze, | ||
403 | .thaw = ata_bmdma_thaw, | ||
404 | .post_internal_cmd = ata_bmdma_post_internal_cmd, | ||
405 | .error_handler = optidma_error_handler, | ||
406 | .set_mode = optidma_set_mode, | ||
407 | .cable_detect = ata_cable_40wire, | ||
408 | |||
409 | .bmdma_setup = ata_bmdma_setup, | ||
410 | .bmdma_start = ata_bmdma_start, | ||
411 | .bmdma_stop = ata_bmdma_stop, | ||
412 | .bmdma_status = ata_bmdma_status, | ||
413 | |||
414 | .qc_prep = ata_qc_prep, | ||
415 | .qc_issue = ata_qc_issue_prot, | ||
416 | |||
417 | .data_xfer = ata_data_xfer, | ||
418 | |||
419 | .irq_handler = ata_interrupt, | ||
420 | .irq_clear = ata_bmdma_irq_clear, | ||
421 | .irq_on = ata_irq_on, | ||
422 | |||
423 | .port_start = ata_sff_port_start, | ||
424 | }; | 369 | }; |
425 | 370 | ||
426 | /** | 371 | /** |