ide-floppy: use alloc_disk_node()

Acked-by: default avatarBorislav Petkov <petkovbb@gmail.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 099ed4c2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment