diff options
Diffstat (limited to 'drivers/ide/at91_ide.c')
-rw-r--r-- | drivers/ide/at91_ide.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ide/at91_ide.c b/drivers/ide/at91_ide.c index 8d39cc9bdf92..11fe1ffdff76 100644 --- a/drivers/ide/at91_ide.c +++ b/drivers/ide/at91_ide.c | |||
@@ -247,8 +247,7 @@ irqreturn_t at91_irq_handler(int irq, void *dev_id) | |||
247 | static int __init at91_ide_probe(struct platform_device *pdev) | 247 | static int __init at91_ide_probe(struct platform_device *pdev) |
248 | { | 248 | { |
249 | int ret; | 249 | int ret; |
250 | hw_regs_t hw; | 250 | hw_regs_t hw, *hws[] = { &hw }; |
251 | hw_regs_t *hws[] = { &hw, NULL, NULL, NULL }; | ||
252 | struct ide_host *host; | 251 | struct ide_host *host; |
253 | struct resource *res; | 252 | struct resource *res; |
254 | unsigned long tf_base = 0, ctl_base = 0; | 253 | unsigned long tf_base = 0, ctl_base = 0; |
@@ -307,7 +306,7 @@ static int __init at91_ide_probe(struct platform_device *pdev) | |||
307 | hw.irq = board->irq_pin; | 306 | hw.irq = board->irq_pin; |
308 | hw.dev = &pdev->dev; | 307 | hw.dev = &pdev->dev; |
309 | 308 | ||
310 | host = ide_host_alloc(&at91_ide_port_info, hws); | 309 | host = ide_host_alloc(&at91_ide_port_info, hws, 1); |
311 | if (!host) { | 310 | if (!host) { |
312 | perr("failed to allocate ide host\n"); | 311 | perr("failed to allocate ide host\n"); |
313 | return -ENOMEM; | 312 | return -ENOMEM; |