mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ide: remove ide_ata66_check()
Acked-by: Sergei Shtylyov <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
This commit is contained in:
parent
5efe7c540e
commit
af10f77390
3 changed files with 4 additions and 17 deletions
|
|
@ -612,21 +612,6 @@ no_80w:
|
|||
return 0;
|
||||
}
|
||||
|
||||
int ide_ata66_check (ide_drive_t *drive, ide_task_t *args)
|
||||
{
|
||||
if (args->tf.command == WIN_SETFEATURES &&
|
||||
args->tf.nsect > XFER_UDMA_2 &&
|
||||
args->tf.feature == SETFEATURES_XFER) {
|
||||
if (eighty_ninty_three(drive) == 0) {
|
||||
printk(KERN_WARNING "%s: UDMA speeds >UDMA33 cannot "
|
||||
"be set\n", drive->name);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_BLK_DEV_IDEDMA
|
||||
static u8 ide_auto_reduce_xfer (ide_drive_t *drive)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -798,8 +798,11 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg)
|
|||
tf->nsect >= XFER_SW_DMA_0 &&
|
||||
(id->dma_ultra || id->dma_mword || id->dma_1word)) {
|
||||
xfer_rate = args[1];
|
||||
if (ide_ata66_check(drive, &tfargs))
|
||||
if (tf->nsect > XFER_UDMA_2 && !eighty_ninty_three(drive)) {
|
||||
printk(KERN_WARNING "%s: UDMA speeds >UDMA33 cannot "
|
||||
"be set\n", drive->name);
|
||||
goto abort;
|
||||
}
|
||||
}
|
||||
|
||||
err = ide_raw_taskfile(drive, &tfargs, buf, args[3]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue