]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/ide-probe.c
[PATCH] CRIS IDE driver
[linux-2.6-omap-h63xx.git] / drivers / ide / ide-probe.c
index 5d876f53c69735d53c6d9b13a42eed559294d5b9..7df85af75371419d5f58e26ef89811783d45b61f 100644 (file)
@@ -977,8 +977,9 @@ static int ide_init_queue(ide_drive_t *drive)
         *      limits and LBA48 we could raise it but as yet
         *      do not.
         */
-        
-       q = blk_init_queue(do_ide_request, &ide_lock);
+
+       q = blk_init_queue_node(do_ide_request, &ide_lock,
+                               pcibus_to_node(drive->hwif->pci_dev->bus));
        if (!q)
                return 1;
 
@@ -1095,7 +1096,8 @@ static int init_irq (ide_hwif_t *hwif)
                hwgroup->hwif->next = hwif;
                spin_unlock_irq(&ide_lock);
        } else {
-               hwgroup = kmalloc(sizeof(ide_hwgroup_t),GFP_KERNEL);
+               hwgroup = kmalloc_node(sizeof(ide_hwgroup_t), GFP_KERNEL,
+                       pcibus_to_node(hwif->drives[0].hwif->pci_dev->bus));
                if (!hwgroup)
                        goto out_up;