From patchwork Mon Apr 23 19:31:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 134025 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp1378053lji; Mon, 23 Apr 2018 12:31:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx498P9zKVbEDR1XWcDhTIvrm0/fH6vMwLB8hip969SMa+/CtEDeYzXjKXyj2Zm4sPMn8D/tP X-Received: by 10.98.5.196 with SMTP id 187mr20970983pff.151.1524511912839; Mon, 23 Apr 2018 12:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524511912; cv=none; d=google.com; s=arc-20160816; b=TnSat/K9FxuDFPMam1FjM0HXmzYHrdNt7BbR7Pg9WAgj2e3AQmdcrBJQQ4CKdrQehp E6dJ1n6rI7rdWjQGA4lkHSOfhG+AygtT+8cWmFKCciK85QoQH3xVbw2dbUfUPsR34y5B k7fQs4vAwkN9XDNH+Pyx1jHXYZMI94DvfSIvua6z2ghE6Rl4raOyW797fw4mY7OOcLxM hQvt+HDwhjYbgUrxzz1psejL0ZGC1Sg21/JTq+5ow9Cb6r9foJx3BrUMbL1JV7XDhugU os2PjbB+8nr2twA5wNC2icGn5IUieIRLTaKPf3Y9dPiVq168AruK5Naxla+jjrj1C4cK UTgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=u4lj6BuWUmo6ThGQJGeyUTwPRTVJRRf7m4XaWiW1I7E=; b=Sa04WgOk0q8OdqL/bk5WuE3zdvsuvbeaTvqNraGkLzrO5ztI7LZ3ApjaIDYT531gr5 LMTlVLljhoP01SCssL3j8al85Zzexz1mfej6oH0+IsYx99Y3e3dmxUnk29zoU4W6gPFF fjHEMXi+SNZsEaeVGENxOvGThdX63u2vZI/lyyfXHhaHqKVzH6fRsIMTasmg249Raclo vldGSctHPvdoQIgMIkXviZmVjtQjGlEOh+0u4htKNEJPCX8sda7UFjkBDuq9y/C20rW6 1J0Si4BUPuiu4Nn0BykELIyKJqoV0eL3hdgUsH+zC4hZND9/F4rpuY9z21kbiMqzQItg 4o9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eqjEeGUp; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i7si10736789pgf.521.2018.04.23.12.31.52; Mon, 23 Apr 2018 12:31:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eqjEeGUp; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932257AbeDWTbt (ORCPT + 5 others); Mon, 23 Apr 2018 15:31:49 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:36394 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932122AbeDWTbs (ORCPT ); Mon, 23 Apr 2018 15:31:48 -0400 Received: by mail-lf0-f68.google.com with SMTP id d20-v6so16713143lfe.3 for ; Mon, 23 Apr 2018 12:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=u4lj6BuWUmo6ThGQJGeyUTwPRTVJRRf7m4XaWiW1I7E=; b=eqjEeGUp5IGYJkOQBB4zYb77nu5BYOiMlPmKlvnIolec4nx/S4gB81/fIaHz/zjDVF Ws46DlZz7gsHxvBvl0UXZ8vfinxxWWy4lK0rIXHwdFf3+x0pHD751AVm/R67g8v7gFv9 PXgC6gmxdTI4tOOWErkISU4zNqNi5DnFm2McE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=u4lj6BuWUmo6ThGQJGeyUTwPRTVJRRf7m4XaWiW1I7E=; b=pQQR5+6P6IoHcgeGwpurwzb8DMpXSxq5mcXo6N1cGEs3mfJAhvREI6JTny7w8ZKigH 2dTmgjSOUfiUPtOKAwPRIb4peK5NwXpAOLds1fuH9DF8CQRCYL8sho/koYtu63G9c5Ry SUdRm5s8xG/mLgc4OBCxq7LpVqm2HBg3rPkRCuyJ/wekusgKpgxna3INCutudHPiV7sJ XYJnDzum18bQHStHb/UuuL/+VK0wCd+3iw9SJ1vKYLv5UNl32GYsmBcuV1GHcFscQNQ+ W1qUWHcNtFx3zi9U0RfkqiG8ZXWdZCEUzc18Rj2BnZHcrH/OU5dCCZCDeuv106/bBimP 7fvg== X-Gm-Message-State: ALQs6tBGeXtJUBwiRxZ6OHumqdA3pVsxbcTEQkSIxr/NhMzEmeMUAmSw CA7feLtfwmFkI4ceLQ3Iq63C57fUlp8= X-Received: by 10.46.134.136 with SMTP id l8mr15294497lji.116.1524511907254; Mon, 23 Apr 2018 12:31:47 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id y1-v6sm2994584lfg.88.2018.04.23.12.31.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Apr 2018 12:31:46 -0700 (PDT) From: Anders Roxell To: mchehab@kernel.org, p.zabel@pengutronix.de Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] drivers: media: platform: make VIDEO_VIU depend on I2C Date: Mon, 23 Apr 2018 21:31:39 +0200 Message-Id: <20180423193139.16792-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Commit 7378f1149884 ("media: omap2: omapfb: allow building it with COMPILE_TEST") broke compilation without CONFIG_I2C selected. drivers/media/platform/fsl-viu.c: In function ‘viu_of_probe’: drivers/media/platform/fsl-viu.c:1452:7: error: implicit declaration of function ‘i2c_get_adapter’; did you mean ‘i2c_lock_adapter’? [-Werror=implicit-function-declaration] ad = i2c_get_adapter(0); ^~~~~~~~~~~~~~~ i2c_lock_adapter drivers/media/platform/fsl-viu.c:1452:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ad = i2c_get_adapter(0); ^ drivers/media/platform/fsl-viu.c:1534:2: error: implicit declaration of function ‘i2c_put_adapter’; did you mean ‘i2c_lock_adapter’? [-Werror=implicit-function-declaration] i2c_put_adapter(ad); ^~~~~~~~~~~~~~~ i2c_lock_adapter Added I2C dependency in order to make all configurations work again. Signed-off-by: Anders Roxell --- drivers/media/platform/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index 91b0c7324afb..56c205b44ee1 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -42,7 +42,7 @@ config VIDEO_SH_VOU config VIDEO_VIU tristate "Freescale VIU Video Driver" - depends on VIDEO_V4L2 && (PPC_MPC512x || COMPILE_TEST) + depends on VIDEO_V4L2 && (PPC_MPC512x || COMPILE_TEST) && I2C select VIDEOBUF_DMA_CONTIG default y ---help---