diff options
author | Tejun Heo <htejun@gmail.com> | 2008-03-25 09:16:44 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-04-17 15:44:18 -0400 |
commit | 6fd36390117f7844ad147377878ddb52088f583a (patch) | |
tree | c25d9a8357ff173ce46eb057cc50370b87b9cca8 /drivers/ata/sata_sil.c | |
parent | 3d5a3d67a578d95ac3a11a862d16a054e2d4d9cd (diff) |
libata: kill ata_chk_status()
ata_chk_status() just calls ops->check_status and it only adds
confusion with other status functions. Kill it.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/sata_sil.c')
-rw-r--r-- | drivers/ata/sata_sil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c index eac7ca73cfa0..659dfcbdc1b2 100644 --- a/drivers/ata/sata_sil.c +++ b/drivers/ata/sata_sil.c | |||
@@ -369,7 +369,7 @@ static void sil_host_intr(struct ata_port *ap, u32 bmdma2) | |||
369 | 369 | ||
370 | if (unlikely(!qc || (qc->tf.flags & ATA_TFLAG_POLLING))) { | 370 | if (unlikely(!qc || (qc->tf.flags & ATA_TFLAG_POLLING))) { |
371 | /* this sometimes happens, just clear IRQ */ | 371 | /* this sometimes happens, just clear IRQ */ |
372 | ata_chk_status(ap); | 372 | ap->ops->check_status(ap); |
373 | return; | 373 | return; |
374 | } | 374 | } |
375 | 375 | ||
@@ -405,7 +405,7 @@ static void sil_host_intr(struct ata_port *ap, u32 bmdma2) | |||
405 | } | 405 | } |
406 | 406 | ||
407 | /* check main status, clearing INTRQ */ | 407 | /* check main status, clearing INTRQ */ |
408 | status = ata_chk_status(ap); | 408 | status = ap->ops->check_status(ap); |
409 | if (unlikely(status & ATA_BUSY)) | 409 | if (unlikely(status & ATA_BUSY)) |
410 | goto err_hsm; | 410 | goto err_hsm; |
411 | 411 | ||
@@ -480,7 +480,7 @@ static void sil_thaw(struct ata_port *ap) | |||
480 | u32 tmp; | 480 | u32 tmp; |
481 | 481 | ||
482 | /* clear IRQ */ | 482 | /* clear IRQ */ |
483 | ata_chk_status(ap); | 483 | ap->ops->check_status(ap); |
484 | ata_bmdma_irq_clear(ap); | 484 | ata_bmdma_irq_clear(ap); |
485 | 485 | ||
486 | /* turn on SATA IRQ if supported */ | 486 | /* turn on SATA IRQ if supported */ |