提交 2b05593d 编写于 作者: M Marek Vasut 提交者: jason

m68k: Fix unused variable warning

The fbcs variable was unused, producing the following warning:

cpu_init.c: In function 'cpu_init_f':
cpu_init.c:52:10: warning: unused variable 'fbcs' [-Wunused-variable]
Signed-off-by: NMarek Vasut <marex@denx.de>
Cc: "Jin Zhengxiong-R64188" <R64188@freescale.com>
Cc: Jason Jin <jason.jin@freescale.com>
上级 37d6cc31
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/rtc.h> #include <asm/rtc.h>
#include <asm/io.h> #include <asm/io.h>
#include <linux/compiler.h>
#if defined(CONFIG_CMD_NET) #if defined(CONFIG_CMD_NET)
#include <config.h> #include <config.h>
...@@ -49,7 +50,7 @@ void cpu_init_f(void) ...@@ -49,7 +50,7 @@ void cpu_init_f(void)
{ {
scm1_t *scm1 = (scm1_t *) MMAP_SCM1; scm1_t *scm1 = (scm1_t *) MMAP_SCM1;
gpio_t *gpio = (gpio_t *) MMAP_GPIO; gpio_t *gpio = (gpio_t *) MMAP_GPIO;
fbcs_t *fbcs = (fbcs_t *) MMAP_FBCS; fbcs_t *fbcs __maybe_unused = (fbcs_t *) MMAP_FBCS;
out_be32(&scm1->mpr, 0x77777777); out_be32(&scm1->mpr, 0x77777777);
out_be32(&scm1->pacra, 0); out_be32(&scm1->pacra, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册