From patchwork Fri Mar 18 07:10:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Hai X-Patchwork-Id: 81908 X-Patchwork-Delegate: hverkuil@xs4all.nl Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1nV6TG-00CncL-UJ; Fri, 18 Mar 2022 06:52:23 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232795AbiCRGxh (ORCPT + 1 other); Fri, 18 Mar 2022 02:53:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231319AbiCRGxg (ORCPT ); Fri, 18 Mar 2022 02:53:36 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09AF5205BC5; Thu, 17 Mar 2022 23:52:19 -0700 (PDT) Received: from kwepemi100021.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KKZSb2N9HzcZxJ; Fri, 18 Mar 2022 14:52:15 +0800 (CST) Received: from kwepemm600001.china.huawei.com (7.193.23.3) by kwepemi100021.china.huawei.com (7.221.188.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 18 Mar 2022 14:52:17 +0800 Received: from huawei.com (10.175.104.82) by kwepemm600001.china.huawei.com (7.193.23.3) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Fri, 18 Mar 2022 14:52:16 +0800 From: Wang Hai To: , , CC: , , Subject: [PATCH -next] media: platform: Fix build error Date: Fri, 18 Mar 2022 15:10:28 +0800 Message-ID: <20220318071028.1356775-1-wanghai38@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.104.82] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600001.china.huawei.com (7.193.23.3) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -2.4 (--) X-LSpam-Report: No, score=-2.4 required=5.0 tests=BAYES_00=-1.9,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no If VIDEO_IMX_MIPI_CSIS is y but VIDEO_DEV is n, building failed: drivers/media/platform/nxp/imx-mipi-csis.o: in function `mipi_csis_remove': imx-mipi-csis.c:(.text+0x1f0): undefined reference to `v4l2_async_nf_unregister' ld: imx-mipi-csis.c:(.text+0x1f8): undefined reference to `v4l2_async_nf_cleanup' ld: imx-mipi-csis.c:(.text+0x200): undefined reference to `v4l2_async_unregister_subdev' Set VIDEO_IMX_MIPI_CSIS to depend on VIDEO_DEV to fix it Fixes: 4a598f62a03b ("media: platform/*/Kconfig: make manufacturer menus more uniform") Reported-by: Hulk Robot Signed-off-by: Wang Hai --- drivers/media/platform/nxp/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/nxp/Kconfig b/drivers/media/platform/nxp/Kconfig index 838abc9766b4..704fcf55697b 100644 --- a/drivers/media/platform/nxp/Kconfig +++ b/drivers/media/platform/nxp/Kconfig @@ -6,6 +6,7 @@ comment "NXP drivers" config VIDEO_IMX_MIPI_CSIS tristate "NXP MIPI CSI-2 CSIS receiver found on i.MX7 and i.MX8 models" + depends on VIDEO_DEV select MEDIA_CONTROLLER select V4L2_FWNODE select VIDEO_V4L2_SUBDEV_API