diff options
Diffstat (limited to 'drivers/ide/gayle.c')
-rw-r--r-- | drivers/ide/gayle.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/ide/gayle.c b/drivers/ide/gayle.c index c7119516c5a7..4451a6a5dfe0 100644 --- a/drivers/ide/gayle.c +++ b/drivers/ide/gayle.c | |||
@@ -88,7 +88,7 @@ static int gayle_ack_intr_a1200(ide_hwif_t *hwif) | |||
88 | return 1; | 88 | return 1; |
89 | } | 89 | } |
90 | 90 | ||
91 | static void __init gayle_setup_ports(hw_regs_t *hw, unsigned long base, | 91 | static void __init gayle_setup_ports(struct ide_hw *hw, unsigned long base, |
92 | unsigned long ctl, unsigned long irq_port, | 92 | unsigned long ctl, unsigned long irq_port, |
93 | ide_ack_intr_t *ack_intr) | 93 | ide_ack_intr_t *ack_intr) |
94 | { | 94 | { |
@@ -106,14 +106,13 @@ static void __init gayle_setup_ports(hw_regs_t *hw, unsigned long base, | |||
106 | 106 | ||
107 | hw->irq = IRQ_AMIGA_PORTS; | 107 | hw->irq = IRQ_AMIGA_PORTS; |
108 | hw->ack_intr = ack_intr; | 108 | hw->ack_intr = ack_intr; |
109 | |||
110 | hw->chipset = ide_generic; | ||
111 | } | 109 | } |
112 | 110 | ||
113 | static const struct ide_port_info gayle_port_info = { | 111 | static const struct ide_port_info gayle_port_info = { |
114 | .host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_SERIALIZE | | 112 | .host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_SERIALIZE | |
115 | IDE_HFLAG_NO_DMA, | 113 | IDE_HFLAG_NO_DMA, |
116 | .irq_flags = IRQF_SHARED, | 114 | .irq_flags = IRQF_SHARED, |
115 | .chipset = ide_generic, | ||
117 | }; | 116 | }; |
118 | 117 | ||
119 | /* | 118 | /* |
@@ -126,7 +125,7 @@ static int __init gayle_init(void) | |||
126 | unsigned long base, ctrlport, irqport; | 125 | unsigned long base, ctrlport, irqport; |
127 | ide_ack_intr_t *ack_intr; | 126 | ide_ack_intr_t *ack_intr; |
128 | int a4000, i, rc; | 127 | int a4000, i, rc; |
129 | hw_regs_t hw[GAYLE_NUM_HWIFS], *hws[] = { NULL, NULL, NULL, NULL }; | 128 | struct ide_hw hw[GAYLE_NUM_HWIFS], *hws[GAYLE_NUM_HWIFS]; |
130 | 129 | ||
131 | if (!MACH_IS_AMIGA) | 130 | if (!MACH_IS_AMIGA) |
132 | return -ENODEV; | 131 | return -ENODEV; |
@@ -171,7 +170,7 @@ found: | |||
171 | hws[i] = &hw[i]; | 170 | hws[i] = &hw[i]; |
172 | } | 171 | } |
173 | 172 | ||
174 | rc = ide_host_add(&gayle_port_info, hws, NULL); | 173 | rc = ide_host_add(&gayle_port_info, hws, i, NULL); |
175 | if (rc) | 174 | if (rc) |
176 | release_mem_region(res_start, res_n); | 175 | release_mem_region(res_start, res_n); |
177 | 176 | ||