MIPS: ath79: Fix the DDR control initialization on ar71xx and ar934x
authorAlban Bedel <albeu@free.fr>
Tue, 17 Nov 2015 08:40:07 +0000 (09:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2015 19:31:09 +0000 (14:31 -0500)
commitd75d9cb5bc65de44104ad67738493274e3ad9b2d
treef1385e9e1181012375d030b82887ea4cf1285ac1
parentd022dec28eacc745f36aa8a55045bc939b91eaa7
MIPS: ath79: Fix the DDR control initialization on ar71xx and ar934x

commit 5011a7e808c9fec643d752c5a495a48f27268a48 upstream.

The DDR control initialization needs to know the SoC type, however
ath79_detect_sys_type() was called after ath79_ddr_ctrl_init().
Reverse the order to fix the DDR control initialization on ar71xx and
ar934x.

Signed-off-by: Alban Bedel <albeu@free.fr>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Qais Yousef <qais.yousef@imgtec.com>
Cc: Andrew Bresticker <abrestic@chromium.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/11500/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/ath79/setup.c