All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: mpc85xx: fix unused variable warning
@ 2020-04-29  9:16 Madalin Bucur
  2020-06-08  7:54 ` Priyanka Jain
  0 siblings, 1 reply; 2+ messages in thread
From: Madalin Bucur @ 2020-04-29  9:16 UTC (permalink / raw
  To: u-boot

Fix unused variable warning when CONFIG_QE is not set.

Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
---
 arch/powerpc/cpu/mpc85xx/cpu_init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] powerpc: mpc85xx: fix unused variable warning
  2020-04-29  9:16 [PATCH] powerpc: mpc85xx: fix unused variable warning Madalin Bucur
@ 2020-06-08  7:54 ` Priyanka Jain
  0 siblings, 0 replies; 2+ messages in thread
From: Priyanka Jain @ 2020-06-08  7:54 UTC (permalink / raw
  To: u-boot

>-----Original Message-----
>From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Madalin Bucur
>Sent: Wednesday, April 29, 2020 2:47 PM
>To: Priyanka Jain <priyanka.jain@nxp.com>; wd at denx.de; u-
>boot at lists.denx.de
>Cc: Madalin Bucur (OSS) <madalin.bucur@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@oss.nxp.com>
>---
<snip>
Patch applied on mpc85xx. Awaiting upstream

Thanks
Priyanka

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-08  7:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-29  9:16 [PATCH] powerpc: mpc85xx: fix unused variable warning Madalin Bucur
2020-06-08  7:54 ` Priyanka Jain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.