ar71xx: rb95x: use correct SPI flash address
authorGabor Juhos <juhosg@openwrt.org>
Wed, 12 Mar 2014 12:52:39 +0000 (12:52 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 12 Mar 2014 12:52:39 +0000 (12:52 +0000)
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>
SVN-Revision: 39891

target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c

index f6de80ab81a96800d691b02d396a205889eccb14..c2261ab9f121d3ea4052256dc9b184bac9630dd4 100644 (file)
@@ -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;