summaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-floppy.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-17 18:09:09 +0200
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-17 18:09:09 +0200
commit9c3ba7692bc1166c6a5d06fb7c59984f9f988a00 (patch)
tree9c625426f11797d364cd3599444ab2883f57a984 /drivers/ide/ide-floppy.c
parent099ed4c2f5d54a5e1e490250805fb9727d622c0c (diff)
downloadop-kernel-dev-9c3ba7692bc1166c6a5d06fb7c59984f9f988a00.zip
op-kernel-dev-9c3ba7692bc1166c6a5d06fb7c59984f9f988a00.tar.gz
ide-floppy: use alloc_disk_node()
Acked-by: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-floppy.c')
-rw-r--r--drivers/ide/ide-floppy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index cf0aa25..73458e4 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -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;
OpenPOWER on IntegriCloud