Wrong bit shifting for the cfrdy function, will always return cf-mips busy
authorFlorian Fainelli <florian@openwrt.org>
Thu, 25 Oct 2007 16:22:27 +0000 (16:22 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 25 Oct 2007 16:22:27 +0000 (16:22 +0000)
SVN-Revision: 9446

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

index c73d21958a0853cdf3deef784ba8f0fe1cbbd1a6..55df75e8641ab6c473ea0e2dca2b7034f5ff6ddd 100644 (file)
@@ -69,7 +69,7 @@ static inline u8 rareg(unsigned reg, struct cf_mips_dev* dev)
 
 static inline int cfrdy(struct cf_mips_dev *dev)
 {
-       return (SW_READ_REG(GPIO_CONF0) & (1 << ADM5120_GPIO_PIN4));
+       return (SW_READ_REG(GPIO_CONF0) & (1 << 12));
 }
 
 static inline void prepare_cf_irq(struct cf_mips_dev *dev)