Skip to content

Commit 255f5e0

Browse files
jjuhlJiri Kosina
authored andcommitted
Remove unneeded version.h includes (and add where needed) for drivers/usb/
It was pointed out by 'make versioncheck' that linux/version.h was not always being included where needed and sometimes included needlessly in drivers/usb/. This patch fixes up the includes. For the UVC gadget driver bits, this was ACK'ed by Laurent Pinchart. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 9f5c312 commit 255f5e0

3 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/usb/gadget/uvc.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ struct uvc_event
5656
#include <linux/usb.h> /* For usb_endpoint_* */
5757
#include <linux/usb/gadget.h>
5858
#include <linux/videodev2.h>
59+
#include <linux/version.h>
5960
#include <media/v4l2-fh.h>
6061

6162
#include "uvc_queue.h"

‎drivers/usb/gadget/uvc_v4l2.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <linux/errno.h>
1717
#include <linux/list.h>
1818
#include <linux/mutex.h>
19-
#include <linux/version.h>
2019
#include <linux/videodev2.h>
2120
#include <linux/vmalloc.h>
2221
#include <linux/wait.h>

‎drivers/usb/storage/realtek_cr.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <linux/kthread.h>
2626
#include <linux/sched.h>
2727
#include <linux/kernel.h>
28-
#include <linux/version.h>
2928

3029
#include <scsi/scsi.h>
3130
#include <scsi/scsi_cmnd.h>

0 commit comments

Comments
 (0)