summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-10-25 16:31:23 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-10-25 16:31:23 +0000
commit3260efaa9077daf36ba42d834b0985582b58a7fc (patch)
tree7007b14bee8a8b7ca6fb76a7abeb2fa1b1630d45 /target/linux
parentfae75b2f4d6e590278188753b630f9fd5f5d2a2a (diff)
downloadmtk-20170518-3260efaa9077daf36ba42d834b0985582b58a7fc.zip
mtk-20170518-3260efaa9077daf36ba42d834b0985582b58a7fc.tar.gz
mtk-20170518-3260efaa9077daf36ba42d834b0985582b58a7fc.tar.bz2
Fix another wrong shitfing
SVN-Revision: 9447
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 55df75e..b396317 100644
--- a/target/linux/adm5120/files/drivers/block/rb1xx/ata.c
+++ b/target/linux/adm5120/files/drivers/block/rb1xx/ata.c
@@ -92,7 +92,7 @@ static inline int cf_present(struct cf_mips_dev* dev)
int i;
/* on RB100 WAIT is LOW all the time => read will hang */
- if (SW_READ_REG(GPIO_CONF0) & (1 << ADM5120_GPIO_PIN0))
+ if (SW_READ_REG(GPIO_CONF0) & (1 << 8))
cmd |= EXTIO_WAIT_EN;
SW_WRITE_REG(GPIO_CONF2, cmd);