diff options
author | Tejun Heo <htejun@gmail.com> | 2008-03-24 23:22:47 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-04-17 15:44:16 -0400 |
commit | 358f9a77a668660729e705fde9c3cf69f013aa98 (patch) | |
tree | a249660fdd9f252925eff9eaac3ed7836c839f91 /drivers/ata/pata_icside.c | |
parent | c1bc899f5805771926c9198e2ab4d77122c356a1 (diff) |
libata: implement and use ata_noop_irq_clear()
->irq_clear() is used to clear IRQ bit of a SFF controller and isn't
useful for drivers which don't use libata SFF HSM implementation.
However, it's a required callback and many drivers implement their own
noop version as placeholder. This patch implements ata_noop_irq_clear
and use it to replace those custom placeholders.
Also, SFF drivers which don't support BMDMA don't need to use
ata_bmdma_irq_clear(). It becomes noop if BMDMA address isn't
initialized. Convert them to use ata_noop_irq_clear().
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/ata/pata_icside.c')
-rw-r--r-- | drivers/ata/pata_icside.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/ata/pata_icside.c b/drivers/ata/pata_icside.c index f97068be2d79..e1230cae7ff1 100644 --- a/drivers/ata/pata_icside.c +++ b/drivers/ata/pata_icside.c | |||
@@ -322,11 +322,6 @@ static struct scsi_host_template pata_icside_sht = { | |||
322 | .bios_param = ata_std_bios_param, | 322 | .bios_param = ata_std_bios_param, |
323 | }; | 323 | }; |
324 | 324 | ||
325 | /* wish this was exported from libata-core */ | ||
326 | static void ata_dummy_noret(struct ata_port *port) | ||
327 | { | ||
328 | } | ||
329 | |||
330 | static void pata_icside_postreset(struct ata_link *link, unsigned int *classes) | 325 | static void pata_icside_postreset(struct ata_link *link, unsigned int *classes) |
331 | { | 326 | { |
332 | struct ata_port *ap = link->ap; | 327 | struct ata_port *ap = link->ap; |
@@ -380,7 +375,7 @@ static struct ata_port_operations pata_icside_port_ops = { | |||
380 | .error_handler = pata_icside_error_handler, | 375 | .error_handler = pata_icside_error_handler, |
381 | .post_internal_cmd = pata_icside_bmdma_stop, | 376 | .post_internal_cmd = pata_icside_bmdma_stop, |
382 | 377 | ||
383 | .irq_clear = ata_dummy_noret, | 378 | .irq_clear = ata_noop_irq_clear, |
384 | .irq_on = ata_irq_on, | 379 | .irq_on = ata_irq_on, |
385 | 380 | ||
386 | .bmdma_stop = pata_icside_bmdma_stop, | 381 | .bmdma_stop = pata_icside_bmdma_stop, |