Message ID | 1588151798-7928-1-git-send-email-madalin.bucur@oss.nxp.com |
---|---|
State | Accepted |
Commit | 03fe5d5116f3793f4d92a15e6d90bb96f0ee0aaf |
Headers | show |
Series | powerpc: mpc85xx: fix unused variable warning | expand |
>-----Original Message----- >From: U-Boot <u-boot-bounces at lists.denx.de> On Behalf Of Madalin Bucur >Sent: Wednesday, April 29, 2020 2:47 PM >To: Priyanka Jain <priyanka.jain at nxp.com>; wd at denx.de; u- >boot at lists.denx.de >Cc: Madalin Bucur (OSS) <madalin.bucur at oss.nxp.com> >Subject: [PATCH] powerpc: mpc85xx: fix unused variable warning > >Fix unused variable warning when CONFIG_QE is not set. > >Signed-off-by: Madalin Bucur <madalin.bucur at oss.nxp.com> >--- <snip> Patch applied on mpc85xx. Awaiting upstream Thanks Priyanka
diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init.c b/arch/powerpc/cpu/mpc85xx/cpu_init.c index 52fa458..f716a9d 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu_init.c +++ b/arch/powerpc/cpu/mpc85xx/cpu_init.c @@ -1028,13 +1028,13 @@ void arch_preboot_os(void) void cpu_secondary_init_r(void) { +#ifdef CONFIG_QE #ifdef CONFIG_U_QE uint qe_base = CONFIG_SYS_IMMR + 0x00140000; /* QE immr base */ -#elif defined CONFIG_QE +#else uint qe_base = CONFIG_SYS_IMMR + 0x00080000; /* QE immr base */ #endif -#ifdef CONFIG_QE qe_init(qe_base); qe_reset(); #endif
Fix unused variable warning when CONFIG_QE is not set. Signed-off-by: Madalin Bucur <madalin.bucur at oss.nxp.com> --- arch/powerpc/cpu/mpc85xx/cpu_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)