diff options
Diffstat (limited to 'drivers/ide/legacy/macide.c')
-rw-r--r-- | drivers/ide/legacy/macide.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ide/legacy/macide.c b/drivers/ide/legacy/macide.c index 0a6195bcfeda..d839df2239fc 100644 --- a/drivers/ide/legacy/macide.c +++ b/drivers/ide/legacy/macide.c | |||
@@ -95,7 +95,7 @@ static int __init macide_init(void) | |||
95 | ide_ack_intr_t *ack_intr; | 95 | ide_ack_intr_t *ack_intr; |
96 | unsigned long base; | 96 | unsigned long base; |
97 | int irq; | 97 | int irq; |
98 | hw_regs_t hw; | 98 | hw_regs_t hw, *hws[] = { &hw, NULL, NULL, NULL }; |
99 | 99 | ||
100 | if (!MACH_IS_MAC) | 100 | if (!MACH_IS_MAC) |
101 | return -ENODEV; | 101 | return -ENODEV; |
@@ -130,9 +130,7 @@ static int __init macide_init(void) | |||
130 | u8 index = hwif->index; | 130 | u8 index = hwif->index; |
131 | u8 idx[4] = { index, 0xff, 0xff, 0xff }; | 131 | u8 idx[4] = { index, 0xff, 0xff, 0xff }; |
132 | 132 | ||
133 | ide_init_port_hw(hwif, &hw); | 133 | ide_device_add(idx, NULL, hws); |
134 | |||
135 | ide_device_add(idx, NULL); | ||
136 | } | 134 | } |
137 | 135 | ||
138 | return 0; | 136 | return 0; |