diff options
Diffstat (limited to 'drivers/ide/legacy/gayle.c')
-rw-r--r-- | drivers/ide/legacy/gayle.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/ide/legacy/gayle.c b/drivers/ide/legacy/gayle.c index 13d22bded6b4..dd5c467d8dd0 100644 --- a/drivers/ide/legacy/gayle.c +++ b/drivers/ide/legacy/gayle.c | |||
@@ -127,7 +127,6 @@ static int __init gayle_init(void) | |||
127 | unsigned long phys_base, res_start, res_n; | 127 | unsigned long phys_base, res_start, res_n; |
128 | unsigned long base, ctrlport, irqport; | 128 | unsigned long base, ctrlport, irqport; |
129 | ide_ack_intr_t *ack_intr; | 129 | ide_ack_intr_t *ack_intr; |
130 | struct ide_host *host; | ||
131 | int a4000, i; | 130 | int a4000, i; |
132 | hw_regs_t hw[GAYLE_NUM_HWIFS], *hws[] = { NULL, NULL, NULL, NULL }; | 131 | hw_regs_t hw[GAYLE_NUM_HWIFS], *hws[] = { NULL, NULL, NULL, NULL }; |
133 | 132 | ||
@@ -180,11 +179,7 @@ found: | |||
180 | hws[i] = &hw[i]; | 179 | hws[i] = &hw[i]; |
181 | } | 180 | } |
182 | 181 | ||
183 | host = ide_host_alloc(NULL, hws); | 182 | return ide_host_add(NULL, hws, NULL); |
184 | if (host) | ||
185 | ide_host_register(host, NULL, hws); | ||
186 | |||
187 | return 0; | ||
188 | } | 183 | } |
189 | 184 | ||
190 | module_init(gayle_init); | 185 | module_init(gayle_init); |