From: Alexey Dobriyan Date: Fri, 10 Nov 2006 19:52:46 +0000 (+0300) Subject: [PATCH] pata_artop: fix "& (1 >>" typo X-Git-Tag: v3.12-rc1~31920^2~20^2~115^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f9dd27a22ff79b6b6c4eccd19e4063bff0ddc7e;p=kernel%2Fkernel-generic.git [PATCH] pata_artop: fix "& (1 >>" typo Signed-off-by: Alexey Dobriyan Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/pata_artop.c b/drivers/ata/pata_artop.c index 690828e..96a0980 100644 --- a/drivers/ata/pata_artop.c +++ b/drivers/ata/pata_artop.c @@ -92,7 +92,7 @@ static int artop6260_pre_reset(struct ata_port *ap) return -ENOENT; pci_read_config_byte(pdev, 0x49, &tmp); - if (tmp & (1 >> ap->port_no)) + if (tmp & (1 << ap->port_no)) ap->cbl = ATA_CBL_PATA40; else ap->cbl = ATA_CBL_PATA80;