Commit e1009878 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] remove unused __ide_dma_retune() and ide_hwif_t->ide_dma_retune

First introduced in kernel 2.3.99-pre3 (added to ide_dmaproc) and never used.
parent acef9fa3
......@@ -850,22 +850,6 @@ int __ide_dma_verbose (ide_drive_t *drive)
EXPORT_SYMBOL(__ide_dma_verbose);
/**
* __ide_dma_retune - default retune handler
* @drive: drive to retune
*
* Default behaviour when we decide to return the IDE DMA setup.
* The default behaviour is "we don't"
*/
int __ide_dma_retune (ide_drive_t *drive)
{
printk(KERN_WARNING "%s: chipset supported call only\n", __FUNCTION__);
return 1;
}
EXPORT_SYMBOL(__ide_dma_retune);
int __ide_dma_lostirq (ide_drive_t *drive)
{
printk("%s: DMA interrupt recovery\n", drive->name);
......@@ -1104,8 +1088,6 @@ void ide_setup_dma (ide_hwif_t *hwif, unsigned long dma_base, unsigned int num_p
hwif->ide_dma_verbose = &__ide_dma_verbose;
if (!hwif->ide_dma_timeout)
hwif->ide_dma_timeout = &__ide_dma_timeout;
if (!hwif->ide_dma_retune)
hwif->ide_dma_retune = &__ide_dma_retune;
if (!hwif->ide_dma_lostirq)
hwif->ide_dma_lostirq = &__ide_dma_lostirq;
......
......@@ -846,7 +846,6 @@ void ide_unregister (unsigned int index)
hwif->ide_dma_good_drive = old_hwif.ide_dma_good_drive;
hwif->ide_dma_count = old_hwif.ide_dma_count;
hwif->ide_dma_verbose = old_hwif.ide_dma_verbose;
hwif->ide_dma_retune = old_hwif.ide_dma_retune;
hwif->ide_dma_lostirq = old_hwif.ide_dma_lostirq;
hwif->ide_dma_timeout = old_hwif.ide_dma_timeout;
hwif->ide_dma_queued_on = old_hwif.ide_dma_queued_on;
......
......@@ -653,7 +653,6 @@ ide_init_sgiioc4(ide_hwif_t * hwif)
hwif->ide_dma_good_drive = &__ide_dma_good_drive;
hwif->ide_dma_count = &__ide_dma_count;
hwif->ide_dma_verbose = &sgiioc4_ide_dma_verbose;
hwif->ide_dma_retune = &__ide_dma_retune;
hwif->ide_dma_lostirq = &sgiioc4_ide_dma_lostirq;
hwif->ide_dma_timeout = &__ide_dma_timeout;
hwif->INB = &sgiioc4_INB;
......
......@@ -2029,7 +2029,6 @@ pmac_ide_setup_dma(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif)
hwif->ide_dma_bad_drive = &__ide_dma_bad_drive;
hwif->ide_dma_verbose = &__ide_dma_verbose;
hwif->ide_dma_timeout = &__ide_dma_timeout;
hwif->ide_dma_retune = &__ide_dma_retune;
hwif->ide_dma_lostirq = &pmac_ide_dma_lostirq;
hwif->ide_dma_queued_on = &__ide_dma_queued_on;
hwif->ide_dma_queued_off = &__ide_dma_queued_off;
......
......@@ -799,7 +799,6 @@ typedef struct ide_dma_ops_s {
int (*ide_dma_good_drive)(ide_drive_t *drive);
int (*ide_dma_count)(ide_drive_t *drive);
int (*ide_dma_verbose)(ide_drive_t *drive);
int (*ide_dma_retune)(ide_drive_t *drive);
int (*ide_dma_lostirq)(ide_drive_t *drive);
int (*ide_dma_timeout)(ide_drive_t *drive);
/* dma queued operations */
......@@ -945,7 +944,6 @@ typedef struct hwif_s {
int (*ide_dma_good_drive)(ide_drive_t *drive);
int (*ide_dma_count)(ide_drive_t *drive);
int (*ide_dma_verbose)(ide_drive_t *drive);
int (*ide_dma_retune)(ide_drive_t *drive);
int (*ide_dma_lostirq)(ide_drive_t *drive);
int (*ide_dma_timeout)(ide_drive_t *drive);
......@@ -1637,7 +1635,6 @@ extern int __ide_dma_bad_drive(ide_drive_t *);
extern int __ide_dma_good_drive(ide_drive_t *);
extern int __ide_dma_count(ide_drive_t *);
extern int __ide_dma_verbose(ide_drive_t *);
extern int __ide_dma_retune(ide_drive_t *);
extern int __ide_dma_lostirq(ide_drive_t *);
extern int __ide_dma_timeout(ide_drive_t *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment