From: Bartlomiej Zolnierkiewicz Date: Fri, 19 Oct 2007 22:32:29 +0000 (+0200) Subject: rz1000: set serialized flag only if mate interface exists X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=746f312a5606bbfc616a16f830705ec8cb54ab9a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git rz1000: set serialized flag only if mate interface exists Setting hwif->serialized makes sense only if the mate interface exists. Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/pci/rz1000.c b/drivers/ide/pci/rz1000.c index dd2583ef1ad..0d76af45db6 100644 --- a/drivers/ide/pci/rz1000.c +++ b/drivers/ide/pci/rz1000.c @@ -41,7 +41,8 @@ static void __devinit init_hwif_rz1000 (ide_hwif_t *hwif) printk(KERN_INFO "%s: disabled chipset read-ahead " "(buggy RZ1000/RZ1001)\n", hwif->name); } else { - hwif->serialized = 1; + if (hwif->mate) + hwif->mate->serialized = hwif->serialized = 1; hwif->drives[0].no_unmask = 1; hwif->drives[1].no_unmask = 1; printk(KERN_INFO "%s: serialized, disabled unmasking "