1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-18 14:47:46 +01:00

Wrong bit shifting for the cfrdy function, will always return cf-mips busy

SVN-Revision: 9446
This commit is contained in:
Florian Fainelli 2007-10-25 16:22:27 +00:00
parent ee65a02320
commit fae75b2f4d

@ -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)