aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/rz1000.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-19 18:32:29 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-19 18:32:29 -0400
commit746f312a5606bbfc616a16f830705ec8cb54ab9a (patch)
tree942ef37b3bbf776e5eaace7c807f07120063fcd6 /drivers/ide/pci/rz1000.c
parentcf6e854efb3682322351a21e64058ffc13250914 (diff)
rz1000: set serialized flag only if mate interface exists
Setting hwif->serialized makes sense only if the mate interface exists. Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/rz1000.c')
-rw-r--r--drivers/ide/pci/rz1000.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/pci/rz1000.c b/drivers/ide/pci/rz1000.c
index dd2583ef1ad7..0d76af45db6b 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)
41 printk(KERN_INFO "%s: disabled chipset read-ahead " 41 printk(KERN_INFO "%s: disabled chipset read-ahead "
42 "(buggy RZ1000/RZ1001)\n", hwif->name); 42 "(buggy RZ1000/RZ1001)\n", hwif->name);
43 } else { 43 } else {
44 hwif->serialized = 1; 44 if (hwif->mate)
45 hwif->mate->serialized = hwif->serialized = 1;
45 hwif->drives[0].no_unmask = 1; 46 hwif->drives[0].no_unmask = 1;
46 hwif->drives[1].no_unmask = 1; 47 hwif->drives[1].no_unmask = 1;
47 printk(KERN_INFO "%s: serialized, disabled unmasking " 48 printk(KERN_INFO "%s: serialized, disabled unmasking "