[PATCH] Fix ide-disk.c oops caused by hwif == NULL
[pandora-kernel.git] / drivers / ide / ide-disk.c
index f9c1acb..c9d3a00 100644 (file)
@@ -1220,7 +1220,7 @@ static int ide_disk_probe(struct device *dev)
                goto failed;
 
        g = alloc_disk_node(1 << PARTN_BITS,
-                       pcibus_to_node(drive->hwif->pci_dev->bus));
+                       hwif_to_node(drive->hwif));
        if (!g)
                goto out_free_idkp;