]> Pileus Git - ~andy/linux/blobdiff - drivers/ide/tx4938ide.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
[~andy/linux] / drivers / ide / tx4938ide.c
index 1d80f1fdbc973edc18bf77115d4aa612557b3e9e..7002765b593ce052b8f72acf7e0dda5ddf1261df 100644 (file)
@@ -64,7 +64,7 @@ static void tx4938ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
 
        pair = ide_get_pair_dev(drive);
        if (pair)
-               safe = min(safe, pair->pio_mode - XFER_PIO_0);
+               safe = min_t(u8, safe, pair->pio_mode - XFER_PIO_0);
        tx4938ide_tune_ebusc(pdata->ebus_ch, pdata->gbus_clock, safe);
 }