Skip to content

Commit

Permalink
[media] soc_camera: preserve const attribute
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Jun 1, 2011
1 parent 76df01e commit d364ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/soc_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d364ee4

Please sign in to comment.