Wrong bit shifting for the cfrdy function, will always return cf-mips busy
[openwrt.git] / target / linux / adm5120 / files / drivers / block / rb1xx / ata.c
index c73d219..55df75e 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)
This page took 0.01883 seconds and 4 git commands to generate.