aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-06-01 15:03:56 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-06-01 15:03:56 -0300
commitd364ee4fdb33a329b16cdf9342e9770b4d4ddc83 (patch)
tree0341b995fbd824efcc1966fdaa2e45fb6036ed4c
parent76df01eacd5fa41b607426a8cb091fb21ae35554 (diff)
downloadkernel_samsung_crespo-d364ee4fdb33a329b16cdf9342e9770b4d4ddc83.zip
kernel_samsung_crespo-d364ee4fdb33a329b16cdf9342e9770b4d4ddc83.tar.gz
kernel_samsung_crespo-d364ee4fdb33a329b16cdf9342e9770b4d4ddc83.tar.bz2
[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 <mchehab@redhat.com>
-rw-r--r--drivers/media/video/soc_camera.c2
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)