Fix another wrong shitfing
authorFlorian Fainelli <florian@openwrt.org>
Thu, 25 Oct 2007 16:31:23 +0000 (16:31 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 25 Oct 2007 16:31:23 +0000 (16:31 +0000)
SVN-Revision: 9447

target/linux/adm5120/files/drivers/block/rb1xx/ata.c

index 55df75e8641ab6c473ea0e2dca2b7034f5ff6ddd..b396317f5f2ca2c690b0114cbafb7e48305ac31e 100644 (file)
@@ -92,7 +92,7 @@ static inline int cf_present(struct cf_mips_dev* dev)
        int i;
 
        /* on RB100 WAIT is LOW all the time => read will hang */
-       if (SW_READ_REG(GPIO_CONF0) & (1 << ADM5120_GPIO_PIN0))
+       if (SW_READ_REG(GPIO_CONF0) & (1 << 8))
                cmd |= EXTIO_WAIT_EN;
 
        SW_WRITE_REG(GPIO_CONF2, cmd);