diff --git a/[refs] b/[refs] index 7758bb0267d9..9503c7bcdde0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 280d69b127f75e1928f583c90f659d49cec4d177 +refs/heads/master: f657911d73f5165c4a32627adbbd7fcf98a85eae diff --git a/trunk/drivers/ide/it821x.c b/trunk/drivers/ide/it821x.c index 56b79194156b..b2709c733485 100644 --- a/trunk/drivers/ide/it821x.c +++ b/trunk/drivers/ide/it821x.c @@ -252,7 +252,7 @@ static void it821x_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) * on the cable. */ if (pair) { - u8 pair_pio = ide_get_best_pio_mode(pair, 255, 4); + u8 pair_pio = pair->pio_mode - XFER_PIO_0; /* trim PIO to the slowest of the master/slave */ if (pair_pio < set_pio) set_pio = pair_pio;