]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ide-floppy: use alloc_disk_node()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 17 Oct 2008 16:09:09 +0000 (18:09 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 17 Oct 2008 16:09:09 +0000 (18:09 +0200)
Acked-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-floppy.c

index cf0aa25470ee87368291dbf8614d2b67020315e9..73458e46bf1e4e82a1b10013c461991fa4bcca08 100644 (file)
@@ -788,7 +788,7 @@ static int ide_floppy_probe(ide_drive_t *drive)
                goto failed;
        }
 
-       g = alloc_disk(1 << PARTN_BITS);
+       g = alloc_disk_node(1 << PARTN_BITS, hwif_to_node(drive->hwif));
        if (!g)
                goto out_free_floppy;