ide: ->ide_dma_clear_irq() -> ->clear_irq()
* Rename ->ide_dma_clear_irq method to ->clear_irq and move it from ide_hwif_t to struct ide_port_ops. * Move ->waiting_for_dma check inside ->clear_irq method. * Move ->dma_base check inside ->clear_irq method. piix.c: * Add ich_port_ops and remove init_hwif_ich() wrapper. There should be no functional changes caused by this patch. Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
+2
-2
@@ -704,6 +704,7 @@ extern const struct ide_tp_ops default_tp_ops;
|
||||
* @resetproc: routine to reset controller after a disk reset
|
||||
* @maskproc: special host masking for drive selection
|
||||
* @quirkproc: check host's drive quirk list
|
||||
* @clear_irq: clear IRQ
|
||||
*
|
||||
* @mdma_filter: filter MDMA modes
|
||||
* @udma_filter: filter UDMA modes
|
||||
@@ -720,6 +721,7 @@ struct ide_port_ops {
|
||||
void (*resetproc)(ide_drive_t *);
|
||||
void (*maskproc)(ide_drive_t *, int);
|
||||
void (*quirkproc)(ide_drive_t *);
|
||||
void (*clear_irq)(ide_drive_t *);
|
||||
|
||||
u8 (*mdma_filter)(ide_drive_t *);
|
||||
u8 (*udma_filter)(ide_drive_t *);
|
||||
@@ -782,8 +784,6 @@ typedef struct hwif_s {
|
||||
const struct ide_port_ops *port_ops;
|
||||
const struct ide_dma_ops *dma_ops;
|
||||
|
||||
void (*ide_dma_clear_irq)(ide_drive_t *drive);
|
||||
|
||||
/* dma physical region descriptor table (cpu view) */
|
||||
unsigned int *dmatable_cpu;
|
||||
/* dma physical region descriptor table (dma view) */
|
||||
|
||||
Reference in New Issue
Block a user