diff options
Diffstat (limited to 'drivers/ide/pci/cs5520.c')
-rw-r--r-- | drivers/ide/pci/cs5520.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/ide/pci/cs5520.c b/drivers/ide/pci/cs5520.c index 01b37ecb5a5a..41559c6de0ca 100644 --- a/drivers/ide/pci/cs5520.c +++ b/drivers/ide/pci/cs5520.c | |||
@@ -105,19 +105,22 @@ static void cs5520_dma_host_set(ide_drive_t *drive, int on) | |||
105 | 105 | ||
106 | static void __devinit init_hwif_cs5520(ide_hwif_t *hwif) | 106 | static void __devinit init_hwif_cs5520(ide_hwif_t *hwif) |
107 | { | 107 | { |
108 | hwif->set_pio_mode = &cs5520_set_pio_mode; | ||
109 | hwif->set_dma_mode = &cs5520_set_dma_mode; | ||
110 | |||
111 | if (hwif->dma_base == 0) | 108 | if (hwif->dma_base == 0) |
112 | return; | 109 | return; |
113 | 110 | ||
114 | hwif->dma_host_set = &cs5520_dma_host_set; | 111 | hwif->dma_host_set = &cs5520_dma_host_set; |
115 | } | 112 | } |
116 | 113 | ||
114 | static const struct ide_port_ops cs5520_port_ops = { | ||
115 | .set_pio_mode = cs5520_set_pio_mode, | ||
116 | .set_dma_mode = cs5520_set_dma_mode, | ||
117 | }; | ||
118 | |||
117 | #define DECLARE_CS_DEV(name_str) \ | 119 | #define DECLARE_CS_DEV(name_str) \ |
118 | { \ | 120 | { \ |
119 | .name = name_str, \ | 121 | .name = name_str, \ |
120 | .init_hwif = init_hwif_cs5520, \ | 122 | .init_hwif = init_hwif_cs5520, \ |
123 | .port_ops = &cs5520_port_ops, \ | ||
121 | .host_flags = IDE_HFLAG_ISA_PORTS | \ | 124 | .host_flags = IDE_HFLAG_ISA_PORTS | \ |
122 | IDE_HFLAG_CS5520 | \ | 125 | IDE_HFLAG_CS5520 | \ |
123 | IDE_HFLAG_VDMA | \ | 126 | IDE_HFLAG_VDMA | \ |