ARM: davinci: limit DT support to DA850
authorArnd Bergmann <arnd@arndb.de>
Mon, 1 Feb 2016 20:35:55 +0000 (21:35 +0100)
committerSekhar Nori <nsekhar@ti.com>
Wed, 17 Feb 2016 13:39:15 +0000 (19:09 +0530)
When da8xx-dt.c is built with onlu DA830 support but not DA850
support enabled, we get a compiler warning about unused symbols:

arch/arm/mach-davinci/da8xx-dt.c:28:20: warning: 'da8xx_init_irq' defined but not used [-Wunused-function]
 static void __init da8xx_init_irq(void)
arch/arm/mach-davinci/da8xx-dt.c:33:30: warning: 'da850_auxdata_lookup' defined but not used [-Wunused-variable]
 static struct of_dev_auxdata da850_auxdata_lookup[] __initdata = {

Obviously none of the file make sense for DA830, so we should not
even attempt this, so we can avoid the warning by ensuring it is
only built for 850, not 830.

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

index bcaf1d0255057ed02353b21028064001e0a1c2ef..de45db23f03723d5a7f7ac9cfe43a67761a561cd 100644 (file)
@@ -58,7 +58,7 @@ comment "DaVinci Board Type"
 config MACH_DA8XX_DT
        bool "Support DA8XX platforms using device tree"
        default y
-       depends on ARCH_DAVINCI_DA8XX
+       depends on ARCH_DAVINCI_DA850
        select PINCTRL
        help
          Say y here to include support for TI DaVinci DA850 based using