Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757811AbbKSNAR (ORCPT ); Thu, 19 Nov 2015 08:00:17 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:57576 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750972AbbKSNAP (ORCPT ); Thu, 19 Nov 2015 08:00:15 -0500 X-Greylist: delayed 160506 seconds by postgrey-1.27 at vger.kernel.org; Thu, 19 Nov 2015 08:00:14 EST From: Arnd Bergmann To: linux-media@vger.kernel.org, Mauro Carvalho Chehab Cc: "Lad, Prabhakar" , linux-kernel@vger.kernel.org, Sekhar Nori , Kevin Hilman , linux-arm-kernel@lists.infradead.org, Hans Verkuil Subject: [PATCH] [media] davinci: add i2c Kconfig dependencies Date: Thu, 19 Nov 2015 13:59:34 +0100 Message-ID: <4284996.N31E5Y01de@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:ihvU4oc5s9DnhJLSFpeq7MxEM+BL5aM5w8WNOLcS/lmW4qkGhRx y2K4r0zFpgRL+wFZMMbagT6aD/1HUzJoRfCvcGE8FV1fups+fXDWq9PfgYMZ+/e3z5sB/Mv QkiVOVGPqi2LTHRwrFDSDSOqM0L+p6GARu//kUAqYb40yMj6AkjKob8FsDzCi1xXTANCK/c jkn7U0tUx5M6xAVT80lyg== X-UI-Out-Filterresults: notjunk:1;V01:K0:LFwii+4fgbI=:opwXGB4cII8Ng2bQtXR1ob EAlKt6mqYGRUeOxvy2gMg/23TWmkKiLVKGirzUPkLjv9jayld8MSoljlJPui4LXeN7yJ4HaT+ MSydEEM7CHNPx4MrfoUXL1l1dkdWBp7pEIMIwI6jpm6cPbjy1B2xEErndyJCiG4gcFEKWHhDs sq/zOPVwKEThVXNLBv2l+IhfikXrUV/gdOjcGyqlN5Tf5BdVI+Q1qmlpzD3Wtxx4q9e2gJOdm rM5BQ59jGM1C8J+gyDaCPeC8kSodA3SDIZz3krIFTBvdTX+TcHYPJ7ASY56aFOA3IMD3n8AxU aaDpv8B4X1Zd2kTrANz/xl5IiymYcs7hd3PV4GjysGm52/V2XBdKQ/7R3CZ9LuzqQ7L9K7h6n sKsWfEh2YsUUPiEKfGdj4DVu3i4GunPwIN+5L0dlxLWDsiIzRNKV7ZBU666Qd7eftB+uYbA+B 6do9MyF+cGswaQGUJ51gHjYkqmeLMPegH35TcepTGuhniWJHTJEGABo02sEyCtzUyavxoetpR 0kfk5DMt6GbFrmuzdafiSECNOS567NMCXoBFVBTt9G9E8Kax09v8tuUsAQx/mNi7uOI1DJ/Aw xpy+ilVtG2p/bkL2pqlk3/deIPNF/se3yoLMjtbHAQRUH/42IVrFUxFiA/7zKtMNcm2DRcEY3 Blk5bKGUBX+9ONyk9oufRmtOQBn0IvbIGNHwb8qaKRR+zoVZS9wflNnHYo87U+AA+poKFfcyA hTfQfzvtL1dEWjcQ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2588 Lines: 72 All the davinci media drivers are using the i2c framework, and fail to build if that is ever disabled, e.g.: media/platform/davinci/vpif_display.c: In function 'vpif_probe': media/platform/davinci/vpif_display.c:1298:14: error: implicit declaration of function 'i2c_get_adapter' [-Werror=implicit-function-declaration] This adds explicit Kconfig dependencies so we don't see the driver options if I2C is turned off. Signed-off-by: Arnd Bergmann --- This is a very rare randconfig error, normally I2C is enabled for some reason already. diff --git a/drivers/media/platform/davinci/Kconfig b/drivers/media/platform/davinci/Kconfig index 469e9d28cec0..554e710de487 100644 --- a/drivers/media/platform/davinci/Kconfig +++ b/drivers/media/platform/davinci/Kconfig @@ -3,6 +3,7 @@ config VIDEO_DAVINCI_VPIF_DISPLAY depends on VIDEO_V4L2 depends on ARCH_DAVINCI || COMPILE_TEST depends on HAS_DMA + depends on I2C select VIDEOBUF2_DMA_CONTIG select VIDEO_ADV7343 if MEDIA_SUBDRV_AUTOSELECT select VIDEO_THS7303 if MEDIA_SUBDRV_AUTOSELECT @@ -19,6 +20,7 @@ config VIDEO_DAVINCI_VPIF_CAPTURE depends on VIDEO_V4L2 depends on ARCH_DAVINCI || COMPILE_TEST depends on HAS_DMA + depends on I2C select VIDEOBUF2_DMA_CONTIG help Enables Davinci VPIF module used for capture devices. @@ -33,6 +35,7 @@ config VIDEO_DM6446_CCDC depends on VIDEO_V4L2 depends on ARCH_DAVINCI || COMPILE_TEST depends on HAS_DMA + depends on I2C select VIDEOBUF_DMA_CONTIG help Enables DaVinci CCD hw module. DaVinci CCDC hw interfaces @@ -49,6 +52,7 @@ config VIDEO_DM355_CCDC depends on VIDEO_V4L2 depends on ARCH_DAVINCI || COMPILE_TEST depends on HAS_DMA + depends on I2C select VIDEOBUF_DMA_CONTIG help Enables DM355 CCD hw module. DM355 CCDC hw interfaces @@ -64,6 +68,7 @@ config VIDEO_DM365_ISIF tristate "TI DM365 ISIF video capture driver" depends on VIDEO_V4L2 && ARCH_DAVINCI depends on HAS_DMA + depends on I2C select VIDEOBUF_DMA_CONTIG help Enables ISIF hw module. This is the hardware module for @@ -77,6 +82,7 @@ config VIDEO_DAVINCI_VPBE_DISPLAY tristate "TI DaVinci VPBE V4L2-Display driver" depends on VIDEO_V4L2 && ARCH_DAVINCI depends on HAS_DMA + depends on I2C select VIDEOBUF2_DMA_CONTIG help Enables Davinci VPBE module used for display devices. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/