diff options
-rw-r--r-- | drivers/ide/legacy/umc8672.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/legacy/umc8672.c b/drivers/ide/legacy/umc8672.c index bc1944811b99..ef768a84be9e 100644 --- a/drivers/ide/legacy/umc8672.c +++ b/drivers/ide/legacy/umc8672.c | |||
@@ -105,13 +105,13 @@ static void umc_set_speeds (u8 speeds[]) | |||
105 | 105 | ||
106 | static void umc_set_pio_mode(ide_drive_t *drive, const u8 pio) | 106 | static void umc_set_pio_mode(ide_drive_t *drive, const u8 pio) |
107 | { | 107 | { |
108 | ide_hwif_t *hwif = drive->hwif; | ||
108 | unsigned long flags; | 109 | unsigned long flags; |
109 | ide_hwgroup_t *hwgroup = ide_hwifs[HWIF(drive)->index^1].hwgroup; | ||
110 | 110 | ||
111 | printk("%s: setting umc8672 to PIO mode%d (speed %d)\n", | 111 | printk("%s: setting umc8672 to PIO mode%d (speed %d)\n", |
112 | drive->name, pio, pio_to_umc[pio]); | 112 | drive->name, pio, pio_to_umc[pio]); |
113 | spin_lock_irqsave(&ide_lock, flags); | 113 | spin_lock_irqsave(&ide_lock, flags); |
114 | if (hwgroup && hwgroup->handler != NULL) { | 114 | if (hwif->mate && hwif->mate->hwgroup->handler) { |
115 | printk(KERN_ERR "umc8672: other interface is busy: exiting tune_umc()\n"); | 115 | printk(KERN_ERR "umc8672: other interface is busy: exiting tune_umc()\n"); |
116 | } else { | 116 | } else { |
117 | current_speeds[drive->name[2] - 'a'] = pio_to_umc[pio]; | 117 | current_speeds[drive->name[2] - 'a'] = pio_to_umc[pio]; |