Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752249AbeAII7Q (ORCPT + 1 other); Tue, 9 Jan 2018 03:59:16 -0500 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:55514 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752188AbeAII7O (ORCPT ); Tue, 9 Jan 2018 03:59:14 -0500 X-IronPort-AV: E=Sophos;i="5.46,334,1511852400"; d="scan'208";a="10354661" Subject: Re: [PATCH] media: i2c: ov7740: add media-controller dependency To: Arnd Bergmann , Mauro Carvalho Chehab CC: Songjun Wu , Sakari Ailus , Hans Verkuil , Pavel Machek , , References: <20180108125322.3993808-1-arnd@arndb.de> From: "Yang, Wenyou" Message-ID: <77115583-f54e-54b4-e0db-6019bab14099@Microchip.com> Date: Tue, 9 Jan 2018 16:59:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180108125322.3993808-1-arnd@arndb.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Hello Arnd, On 2018/1/8 20:52, Arnd Bergmann wrote: > Without CONFIG_MEDIA_CONTROLLER, the new driver fails to build: > > drivers/perf/arm_dsu_pmu.c: In function 'dsu_pmu_probe_pmu': > drivers/perf/arm_dsu_pmu.c:661:2: error: implicit declaration of function 'bitmap_from_u32array'; did you mean 'bitmap_from_arr32'? [-Werror=implicit-function-declaration] > > This adds a dependency similar to what we have for other drivers > like this. > > Fixes: 39c5c4471b8d ("media: i2c: Add the ov7740 image sensor driver") > Signed-off-by: Arnd Bergmann > --- Indeed. Thank you for your fix. Acked-by: Wenyou Yang > drivers/media/i2c/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig > index 9f18cd296841..03cf3a1a1e06 100644 > --- a/drivers/media/i2c/Kconfig > +++ b/drivers/media/i2c/Kconfig > @@ -667,7 +667,7 @@ config VIDEO_OV7670 > > config VIDEO_OV7740 > tristate "OmniVision OV7740 sensor support" > - depends on I2C && VIDEO_V4L2 > + depends on I2C && VIDEO_V4L2 && MEDIA_CONTROLLER > depends on MEDIA_CAMERA_SUPPORT > ---help--- > This is a Video4Linux2 sensor-level driver for the OmniVision Best Regards, Wenyou Yang