From patchwork Fri Aug 28 07:02:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 44394 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7S72Hf2003166 for ; Fri, 28 Aug 2009 07:02:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751934AbZH1HCJ (ORCPT ); Fri, 28 Aug 2009 03:02:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751889AbZH1HCJ (ORCPT ); Fri, 28 Aug 2009 03:02:09 -0400 Received: from mail.gmx.net ([213.165.64.20]:35857 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751902AbZH1HCI (ORCPT ); Fri, 28 Aug 2009 03:02:08 -0400 Received: (qmail invoked by alias); 28 Aug 2009 07:02:09 -0000 Received: from p57BD1444.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.20.68] by mail.gmx.net (mp024) with SMTP; 28 Aug 2009 09:02:09 +0200 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX1+ASBhzRE6AHBK2y6GeE/c5yM5ADqGrBj8LeHUCTx UeiT5UMxo/cJAT Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1MgvTP-0001GI-BW for linux-media@vger.kernel.org; Fri, 28 Aug 2009 09:02:11 +0200 Date: Fri, 28 Aug 2009 09:02:11 +0200 (CEST) From: Guennadi Liakhovetski To: Linux Media Mailing List Subject: [PATCH] soc-camera: remove now unneeded subdevice group ID assignments Message-ID: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.55 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Since we are not using v4l2_device_call_* calls any more, we don't need to initialise subdevice .grp_id any more. This also fixes compiler warnings on 64-bit platforms. Signed-off-by: Guennadi Liakhovetski --- I'm not expecting big problems with this one, so, unless anyone shouts I'll be pushing this out in the next couple of hours. drivers/media/video/soc_camera.c | 1 - drivers/media/video/soc_camera_platform.c | 1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c index 0863361..0ebd72d 100644 --- a/drivers/media/video/soc_camera.c +++ b/drivers/media/video/soc_camera.c @@ -858,7 +858,6 @@ static int soc_camera_init_i2c(struct soc_camera_device *icd, goto ei2cnd; } - subdev->grp_id = (__u32)icd; client = subdev->priv; /* Use to_i2c_client(dev) to recover the i2c client */ diff --git a/drivers/media/video/soc_camera_platform.c b/drivers/media/video/soc_camera_platform.c index 8b1c735..c7c9151 100644 --- a/drivers/media/video/soc_camera_platform.c +++ b/drivers/media/video/soc_camera_platform.c @@ -136,7 +136,6 @@ static int soc_camera_platform_probe(struct platform_device *pdev) v4l2_subdev_init(&priv->subdev, &platform_subdev_ops); v4l2_set_subdevdata(&priv->subdev, p); - priv->subdev.grp_id = (__u32)icd; strncpy(priv->subdev.name, dev_name(&pdev->dev), V4L2_SUBDEV_NAME_SIZE); ret = v4l2_device_register_subdev(&ici->v4l2_dev, &priv->subdev);