diff options
Diffstat (limited to 'drivers/ide/rapide.c')
-rw-r--r-- | drivers/ide/rapide.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/rapide.c b/drivers/ide/rapide.c index bd4d7a8a666c..c4da3dd39f5c 100644 --- a/drivers/ide/rapide.c +++ b/drivers/ide/rapide.c | |||
@@ -36,7 +36,7 @@ rapide_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
36 | void __iomem *base; | 36 | void __iomem *base; |
37 | struct ide_host *host; | 37 | struct ide_host *host; |
38 | int ret; | 38 | int ret; |
39 | hw_regs_t hw, *hws[] = { &hw, NULL, NULL, NULL }; | 39 | hw_regs_t hw, *hws[] = { &hw }; |
40 | 40 | ||
41 | ret = ecard_request_resources(ec); | 41 | ret = ecard_request_resources(ec); |
42 | if (ret) | 42 | if (ret) |
@@ -52,7 +52,7 @@ rapide_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
52 | rapide_setup_ports(&hw, base, base + 0x818, 1 << 6, ec->irq); | 52 | rapide_setup_ports(&hw, base, base + 0x818, 1 << 6, ec->irq); |
53 | hw.dev = &ec->dev; | 53 | hw.dev = &ec->dev; |
54 | 54 | ||
55 | ret = ide_host_add(&rapide_port_info, hws, &host); | 55 | ret = ide_host_add(&rapide_port_info, hws, 1, &host); |
56 | if (ret) | 56 | if (ret) |
57 | goto release; | 57 | goto release; |
58 | 58 | ||