aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/arm/rapide.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/arm/rapide.c')
-rw-r--r--drivers/ide/arm/rapide.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/ide/arm/rapide.c b/drivers/ide/arm/rapide.c
index 83811af11610..6d2fe21cd729 100644
--- a/drivers/ide/arm/rapide.c
+++ b/drivers/ide/arm/rapide.c
@@ -58,6 +58,7 @@ rapide_probe(struct expansion_card *ec, const struct ecard_id *id)
58 ide_hwif_t *hwif; 58 ide_hwif_t *hwif;
59 void __iomem *base; 59 void __iomem *base;
60 int ret; 60 int ret;
61 u8 idx[4] = { 0xff, 0xff, 0xff, 0xff };
61 62
62 ret = ecard_request_resources(ec); 63 ret = ecard_request_resources(ec);
63 if (ret) 64 if (ret)
@@ -74,8 +75,11 @@ rapide_probe(struct expansion_card *ec, const struct ecard_id *id)
74 hwif->hwif_data = base; 75 hwif->hwif_data = base;
75 hwif->gendev.parent = &ec->dev; 76 hwif->gendev.parent = &ec->dev;
76 hwif->noprobe = 0; 77 hwif->noprobe = 0;
77 probe_hwif_init(hwif); 78
78 ide_proc_register_port(hwif); 79 idx[0] = hwif->index;
80
81 ide_device_add(idx);
82
79 ecard_set_drvdata(ec, hwif); 83 ecard_set_drvdata(ec, hwif);
80 goto out; 84 goto out;
81 } 85 }