aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-10-25 16:22:27 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-10-25 16:22:27 +0000
commitfae75b2f4d6e590278188753b630f9fd5f5d2a2a (patch)
treea7ed1461f578d16fa0315dea76279bdf39d1ab3a /target/linux
parentee65a023201a25e8a93ef172f674b50ce40e55ce (diff)
downloadupstream-fae75b2f4d6e590278188753b630f9fd5f5d2a2a.tar.gz
upstream-fae75b2f4d6e590278188753b630f9fd5f5d2a2a.tar.bz2
upstream-fae75b2f4d6e590278188753b630f9fd5f5d2a2a.zip
Wrong bit shifting for the cfrdy function, will always return cf-mips busy
SVN-Revision: 9446
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/adm5120/files/drivers/block/rb1xx/ata.c2
1 files changed, 1 insertions, 1 deletions
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)