usb: gadget: add missing #include's
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Wed, 15 Jun 2011 18:10:37 +0000 (21:10 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Jul 2011 21:31:05 +0000 (14:31 -0700)
When #include'd alone, <linux/usb/gadget.h>
causes a lot of compilation errors and warnings
-- all because it relies on the including code to
bring in the necessary #include's instead of
doing this itself.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/usb/gadget.h

index e22ce7e5a444bb3cb3e785b06637679641f47d38..afb67d997f0c82a6960deb3e581b96c638684d3d 100644 (file)
 #ifndef __LINUX_USB_GADGET_H
 #define __LINUX_USB_GADGET_H
 
+#include <linux/device.h>
+#include <linux/errno.h>
+#include <linux/init.h>
+#include <linux/list.h>
 #include <linux/slab.h>
+#include <linux/types.h>
 #include <linux/usb/ch9.h>
 
 struct usb_ep;