aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-07-10 19:29:58 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-07-10 19:29:58 +0000
commit7ce0ae81eee4348ca382b378c5c9bda4d7fb08ad (patch)
tree1489147c62d76cd24979b7d8522754a602c1fc3a
parent30b42e9dcc8b17655a7fae5aaf588f83b13d9c2c (diff)
downloadupstream-7ce0ae81eee4348ca382b378c5c9bda4d7fb08ad.tar.gz
upstream-7ce0ae81eee4348ca382b378c5c9bda4d7fb08ad.tar.bz2
upstream-7ce0ae81eee4348ca382b378c5c9bda4d7fb08ad.zip
[ar71xx] fix a bug in the SPI driver (closes #5485)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16767 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c b/target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c
index 98de435fda..654a0c8f10 100644
--- a/target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c
+++ b/target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c
@@ -25,7 +25,7 @@
#include <asm/mach-ar71xx/platform.h>
#define DRV_DESC "Atheros AR71xx SPI Controller driver"
-#define DRV_VERSION "0.2.2"
+#define DRV_VERSION "0.2.3"
#define DRV_NAME "ar71xx-spi"
#undef PER_BIT_READ
@@ -184,7 +184,7 @@ static int ar71xx_spi_probe(struct platform_device *pdev)
goto err1;
}
- sp->reg_ctrl = ar71xx_spi_rr(sp, SPI_REG_IOC);
+ sp->reg_ctrl = ar71xx_spi_rr(sp, SPI_REG_CTRL);
ret = spi_bitbang_start(&sp->bitbang);
if (!ret)