Skip to content

Commit

Permalink
ide-floppy: drop 'floppy' argument from idefloppy_setup()
Browse files Browse the repository at this point in the history
Acked-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Oct 17, 2008
1 parent ae9f9f0 commit 8f29cd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/ide/ide-floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8f29cd9

Please sign in to comment.