aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-17 12:09:10 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-17 12:09:10 -0400
commit8f29cd9f12e97d46e601f59810ea6aadd938945d (patch)
treea6af2e1ed03a7193394a3b158c58ea411e35881c /drivers/ide
parentae9f9f073963c56dcc4601ed9a0921eda1e8fa9d (diff)
ide-floppy: drop 'floppy' argument from idefloppy_setup()
Acked-by: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-floppy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index bcbd980f7a48..4a3d7e08b65a 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -560,8 +560,9 @@ sector_t ide_floppy_capacity(ide_drive_t *drive)
560 return capacity; 560 return capacity;
561} 561}
562 562
563static void idefloppy_setup(ide_drive_t *drive, idefloppy_floppy_t *floppy) 563static void idefloppy_setup(ide_drive_t *drive)
564{ 564{
565 struct ide_floppy_obj *floppy = drive->driver_data;
565 u16 *id = drive->id; 566 u16 *id = drive->id;
566 567
567 drive->pc_callback = ide_floppy_callback; 568 drive->pc_callback = ide_floppy_callback;
@@ -808,7 +809,7 @@ static int ide_floppy_probe(ide_drive_t *drive)
808 809
809 drive->debug_mask = debug_mask; 810 drive->debug_mask = debug_mask;
810 811
811 idefloppy_setup(drive, floppy); 812 idefloppy_setup(drive);
812 813
813 g->minors = 1 << PARTN_BITS; 814 g->minors = 1 << PARTN_BITS;
814 g->driverfs_dev = &drive->gendev; 815 g->driverfs_dev = &drive->gendev;