]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ide-floppy: drop 'floppy' argument from idefloppy_setup()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 17 Oct 2008 16:09:10 +0000 (18:09 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 17 Oct 2008 16:09:10 +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 bcbd980f7a486e9f6ff31de7ab248df340fcd7c6..4a3d7e08b65a5de634d6a39855ff7fa83fc373db 100644 (file)
@@ -560,8 +560,9 @@ sector_t ide_floppy_capacity(ide_drive_t *drive)
        return capacity;
 }
 
-static void idefloppy_setup(ide_drive_t *drive, idefloppy_floppy_t *floppy)
+static void idefloppy_setup(ide_drive_t *drive)
 {
+       struct ide_floppy_obj *floppy = drive->driver_data;
        u16 *id = drive->id;
 
        drive->pc_callback       = ide_floppy_callback;
@@ -808,7 +809,7 @@ static int ide_floppy_probe(ide_drive_t *drive)
 
        drive->debug_mask = debug_mask;
 
-       idefloppy_setup(drive, floppy);
+       idefloppy_setup(drive);
 
        g->minors = 1 << PARTN_BITS;
        g->driverfs_dev = &drive->gendev;