ide: add ide_host_add() helper
[deliverable/linux.git] / drivers / ide / arm / rapide.c
index 11f3307385dea9640f45bd0cc0d1579982394c5c..2bdd8b734afb6221aed29958c9a696e4f341614b 100644 (file)
@@ -52,13 +52,9 @@ rapide_probe(struct expansion_card *ec, const struct ecard_id *id)
        hw.chipset = ide_generic;
        hw.dev = &ec->dev;
 
-       host = ide_host_alloc(&rapide_port_info, hws);
-       if (host == NULL) {
-               ret = -ENOENT;
+       ret = ide_host_add(&rapide_port_info, hws, &host);
+       if (ret)
                goto release;
-       }
-
-       ide_host_register(host, &rapide_port_info, hws);
 
        ecard_set_drvdata(ec, host);
        goto out;
This page took 0.023386 seconds and 5 git commands to generate.