aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ov511.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/ov511.c')
-rw-r--r--drivers/media/video/ov511.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/media/video/ov511.c b/drivers/media/video/ov511.c
index f732b035570f..2374ebc084d4 100644
--- a/drivers/media/video/ov511.c
+++ b/drivers/media/video/ov511.c
@@ -5660,43 +5660,43 @@ static int ov_create_sysfs(struct video_device *vdev)
5660{ 5660{
5661 int rc; 5661 int rc;
5662 5662
5663 rc = video_device_create_file(vdev, &dev_attr_custom_id); 5663 rc = device_create_file(&vdev->dev, &dev_attr_custom_id);
5664 if (rc) goto err; 5664 if (rc) goto err;
5665 rc = video_device_create_file(vdev, &dev_attr_model); 5665 rc = device_create_file(&vdev->dev, &dev_attr_model);
5666 if (rc) goto err_id; 5666 if (rc) goto err_id;
5667 rc = video_device_create_file(vdev, &dev_attr_bridge); 5667 rc = device_create_file(&vdev->dev, &dev_attr_bridge);
5668 if (rc) goto err_model; 5668 if (rc) goto err_model;
5669 rc = video_device_create_file(vdev, &dev_attr_sensor); 5669 rc = device_create_file(&vdev->dev, &dev_attr_sensor);
5670 if (rc) goto err_bridge; 5670 if (rc) goto err_bridge;
5671 rc = video_device_create_file(vdev, &dev_attr_brightness); 5671 rc = device_create_file(&vdev->dev, &dev_attr_brightness);
5672 if (rc) goto err_sensor; 5672 if (rc) goto err_sensor;
5673 rc = video_device_create_file(vdev, &dev_attr_saturation); 5673 rc = device_create_file(&vdev->dev, &dev_attr_saturation);
5674 if (rc) goto err_bright; 5674 if (rc) goto err_bright;
5675 rc = video_device_create_file(vdev, &dev_attr_contrast); 5675 rc = device_create_file(&vdev->dev, &dev_attr_contrast);
5676 if (rc) goto err_sat; 5676 if (rc) goto err_sat;
5677 rc = video_device_create_file(vdev, &dev_attr_hue); 5677 rc = device_create_file(&vdev->dev, &dev_attr_hue);
5678 if (rc) goto err_contrast; 5678 if (rc) goto err_contrast;
5679 rc = video_device_create_file(vdev, &dev_attr_exposure); 5679 rc = device_create_file(&vdev->dev, &dev_attr_exposure);
5680 if (rc) goto err_hue; 5680 if (rc) goto err_hue;
5681 5681
5682 return 0; 5682 return 0;
5683 5683
5684err_hue: 5684err_hue:
5685 video_device_remove_file(vdev, &dev_attr_hue); 5685 device_remove_file(&vdev->dev, &dev_attr_hue);
5686err_contrast: 5686err_contrast:
5687 video_device_remove_file(vdev, &dev_attr_contrast); 5687 device_remove_file(&vdev->dev, &dev_attr_contrast);
5688err_sat: 5688err_sat:
5689 video_device_remove_file(vdev, &dev_attr_saturation); 5689 device_remove_file(&vdev->dev, &dev_attr_saturation);
5690err_bright: 5690err_bright:
5691 video_device_remove_file(vdev, &dev_attr_brightness); 5691 device_remove_file(&vdev->dev, &dev_attr_brightness);
5692err_sensor: 5692err_sensor:
5693 video_device_remove_file(vdev, &dev_attr_sensor); 5693 device_remove_file(&vdev->dev, &dev_attr_sensor);
5694err_bridge: 5694err_bridge:
5695 video_device_remove_file(vdev, &dev_attr_bridge); 5695 device_remove_file(&vdev->dev, &dev_attr_bridge);
5696err_model: 5696err_model:
5697 video_device_remove_file(vdev, &dev_attr_model); 5697 device_remove_file(&vdev->dev, &dev_attr_model);
5698err_id: 5698err_id:
5699 video_device_remove_file(vdev, &dev_attr_custom_id); 5699 device_remove_file(&vdev->dev, &dev_attr_custom_id);
5700err: 5700err:
5701 return rc; 5701 return rc;
5702} 5702}