[Devel] [PATCH] pata_artop: fix "& (1 >>" typo

Alexey Dobriyan adobriyan at openvz.org
Fri Nov 10 11:52:46 PST 2006


Signed-off-by: Alexey Dobriyan <adobriyan at openvz.org>
---

 drivers/ata/pata_artop.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/ata/pata_artop.c
+++ b/drivers/ata/pata_artop.c
@@ -92,7 +92,7 @@ static int artop6260_pre_reset(struct at
 		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;




More information about the Devel mailing list