summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorWills Wang <wills.wang@live.com>2016-05-22 11:59:49 +0800
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-05-26 01:34:14 +0200
commit4349b55b9953d0bb591f13ca9985edf591348ced (patch)
treea0c02ded52035dbb8780bae85b3320485508a9fa /arch/mips
parent42a3f3e6ebbac4d93892d2b870502743d7308988 (diff)
downloadtalos-obmc-uboot-4349b55b9953d0bb591f13ca9985edf591348ced.tar.gz
talos-obmc-uboot-4349b55b9953d0bb591f13ca9985edf591348ced.zip
mips: ath79: ar933x: Avoid warning with gcc5
GCC 5.3 report a warning: 'upper' and 'lower' may be used uninitialized in this function [-Wmaybe-uninitialized]. Compiler might need explicit initializer. Signed-off-by: Wills Wang <wills.wang@live.com>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/mach-ath79/ar933x/ddr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/mach-ath79/ar933x/ddr.c b/arch/mips/mach-ath79/ar933x/ddr.c
index 91452bcc53..7f20d34885 100644
--- a/arch/mips/mach-ath79/ar933x/ddr.c
+++ b/arch/mips/mach-ath79/ar933x/ddr.c
@@ -268,6 +268,8 @@ void ddr_tap_tuning(void)
dir = 1;
tap = readl(regs + AR71XX_DDR_REG_TAP_CTRL0);
val = tap;
+ upper = tap;
+ lower = tap;
while (!done) {
err = 0;
OpenPOWER on IntegriCloud