From: Florian Fainelli Date: Thu, 25 Oct 2007 16:22:27 +0000 (+0000) Subject: Wrong bit shifting for the cfrdy function, will always return cf-mips busy X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a6655cfa5caa89d7b3c3b35fa9cba6fca857090a;p=openwrt%2Fsvn-archive%2Farchive.git Wrong bit shifting for the cfrdy function, will always return cf-mips busy SVN-Revision: 9446 --- diff --git a/target/linux/adm5120/files/drivers/block/rb1xx/ata.c b/target/linux/adm5120/files/drivers/block/rb1xx/ata.c index c73d21958a..55df75e864 100644 --- a/target/linux/adm5120/files/drivers/block/rb1xx/ata.c +++ b/target/linux/adm5120/files/drivers/block/rb1xx/ata.c @@ -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)