[PATCH] [MIPS] DB1200: fix compile fail when CONFIG_FB_AU1200 is not selected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is a temporary variable declared in board_setup that is only used when
CONFIG_FB_AU1200 is selected.  It needs to be ifdef protected to prevent
compile failures.

Signed-off-by: Kevin Hickey <khickey@xxxxxxxxxxx>
---
 arch/mips/au1000/pb1200/board_setup.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/mips/au1000/pb1200/board_setup.c b/arch/mips/au1000/pb1200/board_setup.c
index 6cb2115..fa03f44 100644
--- a/arch/mips/au1000/pb1200/board_setup.c
+++ b/arch/mips/au1000/pb1200/board_setup.c
@@ -41,7 +41,9 @@ void board_reset(void)
 
 void __init board_setup(void)
 {
+#ifdef CONFIG_FB_AU1200
 	char *argptr = NULL;
+#endif
 
 #if 0
 	{
-- 
1.5.4.3



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux