Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp62691ybp; Thu, 3 Oct 2019 10:12:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMyK+dV0JPsgQ32Q4ulTHCBEtBVOktjUZn5vG2dV1lv4so4I6Fl03ySdLRL9gI+NN1jlxb X-Received: by 2002:a17:906:6c8:: with SMTP id v8mr8808774ejb.40.1570122722338; Thu, 03 Oct 2019 10:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570122722; cv=none; d=google.com; s=arc-20160816; b=JkW5f9J5MKlUYC+sIWPX/a7GAlN7jvbRRhCMH7NCstQjAhvkmKRL7AugGte6eZN8zG +O6k6rACatIVVIVo49WKsJz/lnoHfSCnG5j5hgHc/hz/TaAqfI+xHXIAUESsYe19JvIo gw2ltrzXbDg4xAftTm0H/Yo9Jotqp3wboSfAOasPIiM3UTh/gwZW1ybFBDLn5Y3T83B4 zeLTkKCqJRrn8L/EPXNUVtx2z9GR6ZwWrDWOSle3qQItsQg79cwdNuQcdTn6hxq90GWP YvsG4vS0W7EKA1NS6lNFxp5FoERIHgaM7eDN4j0VTBKaHvTD7qveMc0ieEd/TrZtDjfW E9Jg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=I6RcRjpqpJtZp0Ys7WvRZQV9dk18vsdUNgbY6Pa2Wxc=; b=fDCQ2oSIp1cLnlfMuE77QvnK3Q9o3yjA2o9QTsrTVtNoMuQCkG83s9VHbIy+WwyOIi S1reSr/JRyWKUXddER2pB6CLPfgabh4R1jjz4RaHtzIf1Hx3qAF5BUqhqQE2m2xxRN16 1KLEmumHtXpcYph2DVLBWIU8RQcjZsSD/B5MZAZiLkXrJdDjAYbU7J8D+d4C81+xnvjy 8Y7ng56lVmZanKDljVGVSVwwqVBXD7WDCEBj653EAc6cJI+CrxXxmjuqlqc8K43j4wFo plD4wsJlEk+EYftQo3cQntBELkM7MFHsDTCgtNoVf+y60+K23QbqJvTNCsZ1Ui0fjccv F6wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="UCe/PO9l"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay2si1838897edb.343.2019.10.03.10.11.38; Thu, 03 Oct 2019 10:12:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@kernel.org header.s=default header.b="UCe/PO9l"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390978AbfJCQd3 (ORCPT + 99 others); Thu, 3 Oct 2019 12:33:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:41436 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404011AbfJCQd1 (ORCPT ); Thu, 3 Oct 2019 12:33:27 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 735EA2086A; Thu, 3 Oct 2019 16:33:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570120406; bh=wNMAwQyR3lEpLegMCTQMtoCUQIx6OvMT+xYy5hpErRE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UCe/PO9l1I4oIrKdZpD6BIH2xcV4xLv1H1SUXrHV70n7uwrLY10uD1KCjWcEXK4el J63h/1yxVzwqvZvACzIFeGz610tjsfVKtoI23UKVgGEOa2AUBOmvGectL3i/B46ijY xG3CUiEdSjbUa9Be/fuYGu4Jhgmx15DtR2psuCFQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sakari Ailus , Laurent Pinchart , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.2 211/313] media: omap3isp: Set device on omap3isp subdevs Date: Thu, 3 Oct 2019 17:53:09 +0200 Message-Id: <20191003154553.772381224@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154533.590915454@linuxfoundation.org> References: <20191003154533.590915454@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sakari Ailus [ Upstream commit e9eb103f027725053a4b02f93d7f2858b56747ce ] The omap3isp driver registered subdevs without the dev field being set. Do that now. Signed-off-by: Sakari Ailus Reviewed-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/omap3isp/ispccdc.c | 1 + drivers/media/platform/omap3isp/ispccp2.c | 1 + drivers/media/platform/omap3isp/ispcsi2.c | 1 + drivers/media/platform/omap3isp/isppreview.c | 1 + drivers/media/platform/omap3isp/ispresizer.c | 1 + drivers/media/platform/omap3isp/ispstat.c | 2 ++ 6 files changed, 7 insertions(+) diff --git a/drivers/media/platform/omap3isp/ispccdc.c b/drivers/media/platform/omap3isp/ispccdc.c index 1ba8a5ba343f6..e2f336c715a4d 100644 --- a/drivers/media/platform/omap3isp/ispccdc.c +++ b/drivers/media/platform/omap3isp/ispccdc.c @@ -2602,6 +2602,7 @@ int omap3isp_ccdc_register_entities(struct isp_ccdc_device *ccdc, int ret; /* Register the subdev and video node. */ + ccdc->subdev.dev = vdev->mdev->dev; ret = v4l2_device_register_subdev(vdev, &ccdc->subdev); if (ret < 0) goto error; diff --git a/drivers/media/platform/omap3isp/ispccp2.c b/drivers/media/platform/omap3isp/ispccp2.c index efca45bb02c8b..d0a49cdfd22d2 100644 --- a/drivers/media/platform/omap3isp/ispccp2.c +++ b/drivers/media/platform/omap3isp/ispccp2.c @@ -1031,6 +1031,7 @@ int omap3isp_ccp2_register_entities(struct isp_ccp2_device *ccp2, int ret; /* Register the subdev and video nodes. */ + ccp2->subdev.dev = vdev->mdev->dev; ret = v4l2_device_register_subdev(vdev, &ccp2->subdev); if (ret < 0) goto error; diff --git a/drivers/media/platform/omap3isp/ispcsi2.c b/drivers/media/platform/omap3isp/ispcsi2.c index e85917f4a50cc..fd493c5e4e24f 100644 --- a/drivers/media/platform/omap3isp/ispcsi2.c +++ b/drivers/media/platform/omap3isp/ispcsi2.c @@ -1198,6 +1198,7 @@ int omap3isp_csi2_register_entities(struct isp_csi2_device *csi2, int ret; /* Register the subdev and video nodes. */ + csi2->subdev.dev = vdev->mdev->dev; ret = v4l2_device_register_subdev(vdev, &csi2->subdev); if (ret < 0) goto error; diff --git a/drivers/media/platform/omap3isp/isppreview.c b/drivers/media/platform/omap3isp/isppreview.c index 40e22400cf5ec..97d660606d984 100644 --- a/drivers/media/platform/omap3isp/isppreview.c +++ b/drivers/media/platform/omap3isp/isppreview.c @@ -2225,6 +2225,7 @@ int omap3isp_preview_register_entities(struct isp_prev_device *prev, int ret; /* Register the subdev and video nodes. */ + prev->subdev.dev = vdev->mdev->dev; ret = v4l2_device_register_subdev(vdev, &prev->subdev); if (ret < 0) goto error; diff --git a/drivers/media/platform/omap3isp/ispresizer.c b/drivers/media/platform/omap3isp/ispresizer.c index 21ca6954df72f..78d9dd7ea2da7 100644 --- a/drivers/media/platform/omap3isp/ispresizer.c +++ b/drivers/media/platform/omap3isp/ispresizer.c @@ -1681,6 +1681,7 @@ int omap3isp_resizer_register_entities(struct isp_res_device *res, int ret; /* Register the subdev and video nodes. */ + res->subdev.dev = vdev->mdev->dev; ret = v4l2_device_register_subdev(vdev, &res->subdev); if (ret < 0) goto error; diff --git a/drivers/media/platform/omap3isp/ispstat.c b/drivers/media/platform/omap3isp/ispstat.c index ca7bb8497c3da..cb5841f628cff 100644 --- a/drivers/media/platform/omap3isp/ispstat.c +++ b/drivers/media/platform/omap3isp/ispstat.c @@ -1026,6 +1026,8 @@ void omap3isp_stat_unregister_entities(struct ispstat *stat) int omap3isp_stat_register_entities(struct ispstat *stat, struct v4l2_device *vdev) { + stat->subdev.dev = vdev->mdev->dev; + return v4l2_device_register_subdev(vdev, &stat->subdev); } -- 2.20.1