ChangeSet 1.1276.22.26, 2003/08/22 15:53:08-07:00, greg@kroah.com

[PATCH] V4L: add video_device_remove_file() to match video_device_create_file()


 include/linux/videodev.h |    6 ++++++
 1 files changed, 6 insertions(+)


diff -Nru a/include/linux/videodev.h b/include/linux/videodev.h
--- a/include/linux/videodev.h	Tue Sep  2 12:46:34 2003
+++ b/include/linux/videodev.h	Tue Sep  2 12:46:34 2003
@@ -63,6 +63,12 @@
 {
 	class_device_create_file(&vfd->class_dev, attr);
 }
+static inline void
+video_device_remove_file(struct video_device *vfd,
+			 struct class_device_attribute *attr)
+{
+	class_device_remove_file(&vfd->class_dev, attr);
+}
 
 /* helper functions to alloc / release struct video_device, the
    later can be used for video_device->release() */
