diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-17 12:09:10 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-17 12:09:10 -0400 |
commit | ae9f9f073963c56dcc4601ed9a0921eda1e8fa9d (patch) | |
tree | 27e9e2e335945d493286116c0090e82fe307185c /drivers/ide/ide-floppy.c | |
parent | 81ee1bb51fff76aaa738668b92406b5117f125ed (diff) |
ide-{disk,floppy}: set IDE_DFLAG_ATTACH in *_setup()
There should be no functional changes caused by this patch.
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.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; |