diff options
-rw-r--r-- | drivers/ide/ide-iops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index f92c63f564d2..affbc603987a 100644 --- a/drivers/ide/ide-iops.c +++ b/drivers/ide/ide-iops.c | |||
@@ -341,10 +341,10 @@ int ide_driveid_update(ide_drive_t *drive) | |||
341 | 341 | ||
342 | local_irq_save(flags); | 342 | local_irq_save(flags); |
343 | tp_ops->input_data(drive, NULL, id, SECTOR_SIZE); | 343 | tp_ops->input_data(drive, NULL, id, SECTOR_SIZE); |
344 | (void)tp_ops->read_status(hwif); /* clear drive IRQ */ | ||
345 | local_irq_enable(); | ||
346 | local_irq_restore(flags); | 344 | local_irq_restore(flags); |
347 | 345 | ||
346 | (void)tp_ops->read_status(hwif); /* clear drive IRQ */ | ||
347 | |||
348 | ide_fix_driveid(id); | 348 | ide_fix_driveid(id); |
349 | 349 | ||
350 | SELECT_MASK(drive, 0); | 350 | SELECT_MASK(drive, 0); |