From 56daf77aa7ad0e8175168d3fdae06e6d42dc20cf Mon Sep 17 00:00:00 2001 From: florian Date: Thu, 25 Oct 2007 16:22:27 +0000 Subject: 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 --- target/linux/adm5120/files/drivers/block/rb1xx/ata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux') diff --git a/target/linux/adm5120/files/drivers/block/rb1xx/ata.c b/target/linux/adm5120/files/drivers/block/rb1xx/ata.c index c73d21958..55df75e86 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) -- cgit v1.2.3