diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-06-01 20:03:56 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-06-01 20:03:56 +0200 |
commit | d364ee4fdb33a329b16cdf9342e9770b4d4ddc83 (patch) | |
tree | 0341b995fbd824efcc1966fdaa2e45fb6036ed4c /drivers/media | |
parent | [media] uvc_entity: initialize return value (diff) | |
download | linux-d364ee4fdb33a329b16cdf9342e9770b4d4ddc83.tar.xz linux-d364ee4fdb33a329b16cdf9342e9770b4d4ddc83.zip |
[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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | 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 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) |