rz1000: set serialized flag only if mate interface exists
PATCH 3/10 rz1000: set serialized flag only if mate interface exists
Setting hwif->serialized makes sense only if the mate interface exists.
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
--- drivers/ide/pci/rz1000.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/ide/pci/rz1000.c +2 -1
@@ -41,7 +41,8 @@ static void __devinit init_hwif_rz1000 (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 "
Quoted 3 lines · Bartlomiej Zolnierkiewicz
Setting
hwif->serializedmakes sense only if the mate interface exists.Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
Acked-by Sergei Shtylyov <[email protected]>
MBR, Sergei