diff options
Diffstat (limited to 'drivers/ide/ide-floppy.c')
-rw-r--r-- | drivers/ide/ide-floppy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 73458e46bf1e..bcbd980f7a48 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
@@ -598,6 +598,8 @@ static void idefloppy_setup(ide_drive_t *drive, idefloppy_floppy_t *floppy) | |||
598 | (void) ide_floppy_get_capacity(drive); | 598 | (void) ide_floppy_get_capacity(drive); |
599 | 599 | ||
600 | ide_proc_register_driver(drive, floppy->driver); | 600 | ide_proc_register_driver(drive, floppy->driver); |
601 | |||
602 | drive->dev_flags |= IDE_DFLAG_ATTACH; | ||
601 | } | 603 | } |
602 | 604 | ||
603 | static void ide_floppy_remove(ide_drive_t *drive) | 605 | static void ide_floppy_remove(ide_drive_t *drive) |
@@ -807,7 +809,6 @@ static int ide_floppy_probe(ide_drive_t *drive) | |||
807 | drive->debug_mask = debug_mask; | 809 | drive->debug_mask = debug_mask; |
808 | 810 | ||
809 | idefloppy_setup(drive, floppy); | 811 | idefloppy_setup(drive, floppy); |
810 | drive->dev_flags |= IDE_DFLAG_ATTACH; | ||
811 | 812 | ||
812 | g->minors = 1 << PARTN_BITS; | 813 | g->minors = 1 << PARTN_BITS; |
813 | g->driverfs_dev = &drive->gendev; | 814 | g->driverfs_dev = &drive->gendev; |