aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2014-03-12 12:52:39 +0000
committerGabor Juhos <juhosg@openwrt.org>2014-03-12 12:52:39 +0000
commitc53d81e6baf1c7fe9a0335848c0a0a80808edff4 (patch)
tree48d74cab1c43d70be390b2f249035f1bcec0768e
parentde8375d0199bca4964f173b1835772d75ad34b3c (diff)
downloadupstream-c53d81e6baf1c7fe9a0335848c0a0a80808edff4.tar.gz
upstream-c53d81e6baf1c7fe9a0335848c0a0a80808edff4.tar.bz2
upstream-c53d81e6baf1c7fe9a0335848c0a0a80808edff4.zip
ar71xx: rb95x: use correct SPI flash address
The flash address passed to rb_init_info() is bogus, use the predefined AR71XX_SPI_BASE macro instead. Compile tested only. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39891 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
index f6de80ab81..c2261ab9f1 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
@@ -184,7 +184,7 @@ static int __init rb95x_setup(void)
{
const struct rb_info *info;
- info = rb_init_info((void *)(KSEG1ADDR(0x1f00000)), 0x10000);
+ info = rb_init_info((void *)(KSEG1ADDR(AR71XX_SPI_BASE)), 0x10000);
if (!info)
return -EINVAL;