From: Bartlomiej Zolnierkiewicz Date: Sat, 2 Feb 2008 18:56:38 +0000 (+0100) Subject: ide: remove redundant init_hwif_default() call from ide_register_hw() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ead741df385607ab74876afdb05fd8ac27da9906;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ide: remove redundant init_hwif_default() call from ide_register_hw() ide_init_port_hw() call overrides setup done by init_hwif_default(). Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index a71591ab0c5f..4b130e7102eb 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c @@ -716,10 +716,8 @@ int ide_register_hw(hw_regs_t *hw, void (*quirkproc)(ide_drive_t *), found: if (hwif->present) ide_unregister(index); - else if (!hwif->hold) { + else if (!hwif->hold) ide_init_port_data(hwif, index); - init_hwif_default(hwif, index); - } ide_init_port_hw(hwif, hw); hwif->quirkproc = quirkproc;