From: Mauro Carvalho Chehab Date: Wed, 1 Jun 2011 18:03:56 +0000 (-0300) Subject: [media] soc_camera: preserve const attribute X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d364ee4fdb33a329b16cdf9342e9770b4d4ddc83;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [media] soc_camera: preserve const attribute drivers/media/video/soc_camera.c: In function ‘soc_camera_video_start’: drivers/media/video/soc_camera.c:1515: warning: initialization discards qualifiers from pointer target type Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c index 398864370267..4e4d4122d9a6 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)