diff options
Diffstat (limited to 'drivers/ide/mips/au1xxx-ide.c')
-rw-r--r-- | drivers/ide/mips/au1xxx-ide.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/ide/mips/au1xxx-ide.c b/drivers/ide/mips/au1xxx-ide.c index 85819ae20602..c319f6163127 100644 --- a/drivers/ide/mips/au1xxx-ide.c +++ b/drivers/ide/mips/au1xxx-ide.c | |||
@@ -103,7 +103,9 @@ static void au1xxx_set_pio_mode(ide_drive_t *drive, const u8 pio) | |||
103 | { | 103 | { |
104 | int mem_sttime; | 104 | int mem_sttime; |
105 | int mem_stcfg; | 105 | int mem_stcfg; |
106 | u8 speed; | 106 | |
107 | if (ide_config_drive_speed(drive, pio + XFER_PIO_0)) | ||
108 | return; | ||
107 | 109 | ||
108 | mem_sttime = 0; | 110 | mem_sttime = 0; |
109 | mem_stcfg = au_readl(MEM_STCFG2); | 111 | mem_stcfg = au_readl(MEM_STCFG2); |
@@ -164,9 +166,6 @@ static void au1xxx_set_pio_mode(ide_drive_t *drive, const u8 pio) | |||
164 | 166 | ||
165 | au_writel(mem_sttime,MEM_STTIME2); | 167 | au_writel(mem_sttime,MEM_STTIME2); |
166 | au_writel(mem_stcfg,MEM_STCFG2); | 168 | au_writel(mem_stcfg,MEM_STCFG2); |
167 | |||
168 | speed = pio + XFER_PIO_0; | ||
169 | ide_config_drive_speed(drive, speed); | ||
170 | } | 169 | } |
171 | 170 | ||
172 | static int auide_tune_chipset(ide_drive_t *drive, const u8 speed) | 171 | static int auide_tune_chipset(ide_drive_t *drive, const u8 speed) |