staging: android ion/hisi: fix dependencies
authorArnd Bergmann <arnd@arndb.de>
Thu, 15 Sep 2016 15:57:40 +0000 (17:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Sep 2016 08:22:35 +0000 (10:22 +0200)
The newly added Hi6220 Ion code fails to build when the ION_OF helpers
are not present:

drivers/staging/android/ion/hisilicon/hi6220_ion.o: In function `hi6220_ion_remove':
hi6220_ion.c:(.text.hi6220_ion_remove+0x4c): undefined reference to `ion_destroy_platform_data'
drivers/staging/android/ion/hisilicon/hi6220_ion.o: In function `hi6220_ion_probe':
hi6220_ion.c:(.text.hi6220_ion_probe+0x5c): undefined reference to `ion_parse_dt'
hi6220_ion.c:(.text.hi6220_ion_probe+0xf8): undefined reference to `ion_destroy_platform_data'

This selects the symbol when needed.

Fixes: 2b40182a19bc ("staging: android: ion: Add ion driver for Hi6220 SoC platform")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Laura Abbott <labbott@redhat.com>
Reviewed-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/Kconfig

index 94105544feefe04e3a5cd382b2cdde97a5f5abd7..c8fb4134c55d04b502ab6d9b0a9376a927f69bc3 100644 (file)
@@ -36,6 +36,7 @@ config ION_TEGRA
 config ION_HISI
        tristate "Ion for Hisilicon"
        depends on ARCH_HISI && ION
+       select ION_OF
        help
          Choose this option if you wish to use ion on Hisilicon Platform.