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: 553277 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD4ABC433F5 for ; Fri, 18 Mar 2022 06:52:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232795AbiCRGxh (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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