From: Bartlomiej Zolnierkiewicz Date: Tue, 15 Jul 2008 19:21:48 +0000 (+0200) Subject: ide: fix do_probe() to use SELECT_DRIVE() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e81a3bde13343bc36613aff8f864def7171b376a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ide: fix do_probe() to use SELECT_DRIVE() Fix one place in do_probe() which used ->OUTB directly instead of calling SELECT_DRIVE() (so ->selectproc method is also used). Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 26e68b65b7cf..12513c45d700 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c @@ -478,7 +478,7 @@ static int do_probe (ide_drive_t *drive, u8 cmd) printk(KERN_ERR "%s: no response (status = 0x%02x), " "resetting drive\n", drive->name, stat); msleep(50); - hwif->OUTB(drive->select.all, io_ports->device_addr); + SELECT_DRIVE(drive); msleep(50); hwif->OUTBSYNC(drive, WIN_SRST, io_ports->command_addr); (void)ide_busy_sleep(hwif);