diff options
Diffstat (limited to 'drivers/ata/pata_platform.c')
-rw-r--r-- | drivers/ata/pata_platform.c | 46 |
1 files changed, 6 insertions, 40 deletions
diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c index aad7adc6ea56..6527c56c34a3 100644 --- a/drivers/ata/pata_platform.c +++ b/drivers/ata/pata_platform.c | |||
@@ -46,50 +46,16 @@ static int pata_platform_set_mode(struct ata_link *link, struct ata_device **unu | |||
46 | return 0; | 46 | return 0; |
47 | } | 47 | } |
48 | 48 | ||
49 | static int ata_dummy_ret0(struct ata_port *ap) { return 0; } | ||
50 | |||
51 | static struct scsi_host_template pata_platform_sht = { | 49 | static struct scsi_host_template pata_platform_sht = { |
52 | .module = THIS_MODULE, | 50 | ATA_PIO_SHT(DRV_NAME), |
53 | .name = DRV_NAME, | ||
54 | .ioctl = ata_scsi_ioctl, | ||
55 | .queuecommand = ata_scsi_queuecmd, | ||
56 | .can_queue = ATA_DEF_QUEUE, | ||
57 | .this_id = ATA_SHT_THIS_ID, | ||
58 | .sg_tablesize = LIBATA_MAX_PRD, | ||
59 | .cmd_per_lun = ATA_SHT_CMD_PER_LUN, | ||
60 | .emulated = ATA_SHT_EMULATED, | ||
61 | .use_clustering = ATA_SHT_USE_CLUSTERING, | ||
62 | .proc_name = DRV_NAME, | ||
63 | .dma_boundary = ATA_DMA_BOUNDARY, | ||
64 | .slave_configure = ata_scsi_slave_config, | ||
65 | .slave_destroy = ata_scsi_slave_destroy, | ||
66 | .bios_param = ata_std_bios_param, | ||
67 | }; | 51 | }; |
68 | 52 | ||
69 | static struct ata_port_operations pata_platform_port_ops = { | 53 | static struct ata_port_operations pata_platform_port_ops = { |
70 | .set_mode = pata_platform_set_mode, | 54 | .inherits = &ata_sff_port_ops, |
71 | 55 | .sff_data_xfer = ata_sff_data_xfer_noirq, | |
72 | .tf_load = ata_tf_load, | ||
73 | .tf_read = ata_tf_read, | ||
74 | .check_status = ata_check_status, | ||
75 | .exec_command = ata_exec_command, | ||
76 | .dev_select = ata_std_dev_select, | ||
77 | |||
78 | .freeze = ata_bmdma_freeze, | ||
79 | .thaw = ata_bmdma_thaw, | ||
80 | .error_handler = ata_bmdma_error_handler, | ||
81 | .post_internal_cmd = ata_bmdma_post_internal_cmd, | ||
82 | .cable_detect = ata_cable_unknown, | 56 | .cable_detect = ata_cable_unknown, |
83 | 57 | .set_mode = pata_platform_set_mode, | |
84 | .qc_prep = ata_qc_prep, | 58 | .port_start = ATA_OP_NULL, |
85 | .qc_issue = ata_qc_issue_prot, | ||
86 | |||
87 | .data_xfer = ata_data_xfer_noirq, | ||
88 | |||
89 | .irq_clear = ata_bmdma_irq_clear, | ||
90 | .irq_on = ata_irq_on, | ||
91 | |||
92 | .port_start = ata_dummy_ret0, | ||
93 | }; | 59 | }; |
94 | 60 | ||
95 | static void pata_platform_setup_port(struct ata_ioports *ioaddr, | 61 | static void pata_platform_setup_port(struct ata_ioports *ioaddr, |
@@ -210,7 +176,7 @@ int __devinit __pata_platform_probe(struct device *dev, | |||
210 | (unsigned long long)ctl_res->start); | 176 | (unsigned long long)ctl_res->start); |
211 | 177 | ||
212 | /* activate */ | 178 | /* activate */ |
213 | return ata_host_activate(host, irq, irq ? ata_interrupt : NULL, | 179 | return ata_host_activate(host, irq, irq ? ata_sff_interrupt : NULL, |
214 | irq_flags, &pata_platform_sht); | 180 | irq_flags, &pata_platform_sht); |
215 | } | 181 | } |
216 | EXPORT_SYMBOL_GPL(__pata_platform_probe); | 182 | EXPORT_SYMBOL_GPL(__pata_platform_probe); |