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 011d72011cc4..6f5294cfff23 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
@@ -949,11 +949,12 @@ static int idefloppy_get_format_progress(ide_drive_t *drive, int __user *arg) | |||
949 | 949 | ||
950 | /* Else assume format_unit has finished, and we're at 0x10000 */ | 950 | /* Else assume format_unit has finished, and we're at 0x10000 */ |
951 | } else { | 951 | } else { |
952 | ide_hwif_t *hwif = drive->hwif; | ||
952 | unsigned long flags; | 953 | unsigned long flags; |
953 | u8 stat; | 954 | u8 stat; |
954 | 955 | ||
955 | local_irq_save(flags); | 956 | local_irq_save(flags); |
956 | stat = ide_read_status(drive); | 957 | stat = hwif->read_status(hwif); |
957 | local_irq_restore(flags); | 958 | local_irq_restore(flags); |
958 | 959 | ||
959 | progress_indication = ((stat & SEEK_STAT) == 0) ? 0 : 0x10000; | 960 | progress_indication = ((stat & SEEK_STAT) == 0) ? 0 : 0x10000; |