From patchwork Fri May 27 14:57:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 824362 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4REv90A028145 for ; Fri, 27 May 2011 14:57:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752180Ab1E0O5I (ORCPT ); Fri, 27 May 2011 10:57:08 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:50045 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751370Ab1E0O5G (ORCPT ); Fri, 27 May 2011 10:57:06 -0400 Received: from axis700.grange (dslb-094-221-103-246.pools.arcor-ip.net [94.221.103.246]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0Lecww-1Pr8Ag2Flm-00qULR; Fri, 27 May 2011 16:57:04 +0200 Received: by axis700.grange (Postfix, from userid 1000) id 37725189B6D; Fri, 27 May 2011 16:57:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id 351D3189B6B for ; Fri, 27 May 2011 16:57:04 +0200 (CEST) Date: Fri, 27 May 2011 16:57:04 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: Linux Media Mailing List Subject: [PATCH] V4L: soc-camera: fix compiler warning Message-ID: MIME-Version: 1.0 X-Provags-ID: V02:K0:Kb5YANw2ZJH2nLy+bi6zbJGsL/DcmugT6/PYoESLec1 j3A1RL5J/q1zIMAssiV+ZkodVP3mt480H9RQRabpicuPVwdWhf TffWTBe5/kvXqxJ25cvzzvIX2J0O/AtYk7Gz5Egrn2+b1veGel 0UHEULS8EnEwMVK0SRV1yf1bCaBYv7TUbfRHAFVoGFsUkuDGg3 elREl5JuYdlQhPebUrEyb4jPnI5SVnhLvrSoiCwcMA= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 27 May 2011 14:57:09 +0000 (UTC) Fix a compiler warning, introduced by the commit aed65af1 Author: Stephen Hemminger drivers: make device_type const Signed-off-by: Guennadi Liakhovetski --- drivers/media/video/soc_camera.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c index 3988643..4e4d412 100644 --- a/drivers/media/video/soc_camera.c +++ b/drivers/media/video/soc_camera.c @@ -1512,7 +1512,7 @@ static int video_dev_create(struct soc_camera_device *icd) */ static int soc_camera_video_start(struct soc_camera_device *icd) { - struct device_type *type = icd->vdev->dev.type; + const struct device_type *type = icd->vdev->dev.type; int ret; if (!icd->dev.parent)