ARM: davinci: avoid unused mityomapl138_pn_info variable
authorArnd Bergmann <arnd@arndb.de>
Mon, 1 Feb 2016 20:35:56 +0000 (21:35 +0100)
committerSekhar Nori <nsekhar@ti.com>
Wed, 17 Feb 2016 13:41:18 +0000 (19:11 +0530)
The mityomapl138_pn_info structure belongs into the CPU_FREQ support
that is hidden behind an #ifdef, and causes a harmless warning when
that support is disabled:

mach-davinci/board-mityomapl138.c:59:28: error: 'mityomapl138_pn_info' defined but not used [-Werror=unused-variable]

This moves the variable definition where it belongs.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/board-mityomapl138.c

index de1316bf643a56fc3689a830ad04b4f1b69206f1..c1f4b34785db00762bd5775fe094f1c73a71adc1 100644 (file)
@@ -51,6 +51,7 @@ struct factory_config {
 
 static struct factory_config factory_config;
 
+#ifdef CONFIG_CPU_FREQ
 struct part_no_info {
        const char      *part_no;       /* part number string of interest */
        int             max_freq;       /* khz */
@@ -87,7 +88,6 @@ static struct part_no_info mityomapl138_pn_info[] = {
        },
 };
 
-#ifdef CONFIG_CPU_FREQ
 static void mityomapl138_cpufreq_init(const char *partnum)
 {
        int i, ret;