diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-07-25 06:39:54 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-26 12:18:11 -0400 |
commit | f894dfd735237548d282d6fd55b6ebb4b2fd9ef2 (patch) | |
tree | bf7313318e8653d82ddfd001de742c48e93f1f9d /drivers/media/video/stk-webcam.c | |
parent | 668acf32dfa1f1a975213f77bf17ee435f5a8edd (diff) |
V4L/DVB (8488): videodev: remove some CONFIG_VIDEO_V4L1_COMPAT code from v4l2-dev.h
The video_device_create_file and video_device_remove_file functions can be
removed from v4l2-dev.h, removing the dependency on videodev.h in v4l2-dev.h.
Also removed a few more videodev.h includes that should have been videodev2.h.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/stk-webcam.c')
-rw-r--r-- | drivers/media/video/stk-webcam.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/media/video/stk-webcam.c b/drivers/media/video/stk-webcam.c index 8d5fa95ad95a..8aa56fe02546 100644 --- a/drivers/media/video/stk-webcam.c +++ b/drivers/media/video/stk-webcam.c | |||
@@ -341,17 +341,19 @@ static int stk_create_sysfs_files(struct video_device *vdev) | |||
341 | { | 341 | { |
342 | int ret; | 342 | int ret; |
343 | 343 | ||
344 | ret = video_device_create_file(vdev, &dev_attr_brightness); | 344 | ret = device_create_file(&vdev->dev, &dev_attr_brightness); |
345 | ret += video_device_create_file(vdev, &dev_attr_hflip); | 345 | ret += device_create_file(&vdev->dev, &dev_attr_hflip); |
346 | ret += video_device_create_file(vdev, &dev_attr_vflip); | 346 | ret += device_create_file(&vdev->dev, &dev_attr_vflip); |
347 | if (ret) | ||
348 | STK_WARNING("Could not create sysfs files\n"); | ||
347 | return ret; | 349 | return ret; |
348 | } | 350 | } |
349 | 351 | ||
350 | static void stk_remove_sysfs_files(struct video_device *vdev) | 352 | static void stk_remove_sysfs_files(struct video_device *vdev) |
351 | { | 353 | { |
352 | video_device_remove_file(vdev, &dev_attr_brightness); | 354 | device_remove_file(&vdev->dev, &dev_attr_brightness); |
353 | video_device_remove_file(vdev, &dev_attr_hflip); | 355 | device_remove_file(&vdev->dev, &dev_attr_hflip); |
354 | video_device_remove_file(vdev, &dev_attr_vflip); | 356 | device_remove_file(&vdev->dev, &dev_attr_vflip); |
355 | } | 357 | } |
356 | 358 | ||
357 | #else | 359 | #else |