aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/files
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
commita50677440ee6c52530504a53287f69df5aae1b67 (patch)
tree2aac7937fe1c0916d2c01bc2b6e1fc4b90470f1b /target/linux/adm5120/files
parent6d946c2d0f4c6e9f55856d000210261984cce140 (diff)
downloadupstream-a50677440ee6c52530504a53287f69df5aae1b67.tar.gz
upstream-a50677440ee6c52530504a53287f69df5aae1b67.tar.bz2
upstream-a50677440ee6c52530504a53287f69df5aae1b67.zip
Wrong bit shifting for the cfrdy function, will always return cf-mips busy
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9446 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files')
-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)