From patchwork Tue Nov 28 10:38:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10080007 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0184B6056A for ; Tue, 28 Nov 2017 11:56:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02BD628609 for ; Tue, 28 Nov 2017 11:56:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA5F9290D5; Tue, 28 Nov 2017 11:56:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7366F28609 for ; Tue, 28 Nov 2017 11:56:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932335AbdK1Ki7 (ORCPT ); Tue, 28 Nov 2017 05:38:59 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:60782 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932324AbdK1Ki4 (ORCPT ); Tue, 28 Nov 2017 05:38:56 -0500 Received: from wuerfel.lan ([109.193.157.232]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MDgeU-1eLDho1Ib8-00H8dO; Tue, 28 Nov 2017 11:38:46 +0100 From: Arnd Bergmann To: Mauro Carvalho Chehab , Hans Verkuil , Sakari Ailus Cc: Arnd Bergmann , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: ov13858: select V4L2_FWNODE Date: Tue, 28 Nov 2017 11:38:00 +0100 Message-Id: <20171128103841.490119-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:JMfPBp2KkLBbuMzSnASYmBs8N6371R7+e8cqlZIRDp8Wapmh0mZ Q5Q+PikpwRxQWt/Vf3UNf13ffPeCEG7Lmap/XOJmaMv8G3qeV5Rr6BXpQM+loXQqVI6Rpdc 0szb+eaib3YMWjMeLh37LsFe7K7PKsn65Ud04NMhFrCfbDnTk2pKkk3jw8pm/+Zy8DWIh1P ndrvSrY/GfECJAe61KM6g== X-UI-Out-Filterresults: notjunk:1; V01:K0:hajoDykoFWk=:d+AWO07PWHmVV4cHlC/XqR UH+ghFfARXoxa5ZRekS7M3KS/pU1Izypr1gNZ9Shij1IfAXqM6qqTvzfEwNpVCswsuRtTRYvQ mdjiQWyLoh2nxS4kCmDjr160ceaKoOLxWcQ1SlNjZuoGhmiCRLx+JHFvKZA7H4cDFFcVHh8y5 Q5udaMPg+XaipUlsgtEgDy1VmtjpfHe+29K8cCZL1Z6ZrYYA3zR2Cpmhyjd3LxSsusp0Ge8OC eaV6CorP3Z/V7hUDmgQpfXcTJZ+TZutH1H6/mYrQ6RECEHwWgutJ3oBBpa6AiIWj9R0243q7G qjCb7ubMsWuEHwUEKmhrSJeLUEFFSK2IaOJms5U5CBxbFDd6awApnibleGES3dT2RryfAanF0 G+dAbCIvcdyLcoFXtaLWADxM8ofHQg4jOWqAv+Y7zhzuceciFmHSfUdwgODt4nv7k2YQLt85h MvhCuhs09VqYVsAT5KCC4Nn7bgaUR17IBhuUgX2dJXodbMrfAeL8wsuiIMbZ5f0evUTzxKepJ 1M7vrnNUocyjGui+2uEiVQgQxiOgyDrUlDjhl22eofFFtsIX5W34CcSoMbKVqk9GGDE+mbF7n 5DTpdQeqOKO91TSKTl1Nr/xSuIq48v+GAJZo3942+AlsaHdLiP08fUu1PvNQ4WZIRfm0+X5TU k+VvohZMnJS05otOIZdj3F9ZkHfRVwOD44bk38KtS9nNs+/tYXtH5oyKPCFSwP1Xxz0e7ZE5/ J3htMttk9vLooXSRw5xPHbmtkCOzIUYJWxhKMA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP v4l2_async_register_subdev_sensor_common() is only provided when CONFIG_V4L2_FWNODE is enabled, otherwise we get a link failure: drivers/media/i2c/ov13858.o: In function `ov13858_probe': ov13858.c:(.text+0xf74): undefined reference to `v4l2_async_register_subdev_sensor_common' This adds a Kconfig 'select' statement like all the other users of this interface have. Fixes: 2e8a9fbb7950 ("media: ov13858: Add support for flash and lens devices") Signed-off-by: Arnd Bergmann --- This is the same patch I submitted for et8ek8 earlier. Both are needed for 4.15. --- drivers/media/i2c/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig index 3c6d6428f525..cb5d7ff82915 100644 --- a/drivers/media/i2c/Kconfig +++ b/drivers/media/i2c/Kconfig @@ -676,6 +676,7 @@ config VIDEO_OV13858 tristate "OmniVision OV13858 sensor support" depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API depends on MEDIA_CAMERA_SUPPORT + select V4L2_FWNODE ---help--- This is a Video4Linux2 sensor-level driver for the OmniVision OV13858 camera.