OSDN Git Service

usb: gadget: udc: fsl_mxc_udc: fix sparse error
authorFelipe Balbi <balbi@ti.com>
Wed, 16 Jul 2014 17:23:55 +0000 (12:23 -0500)
committerFelipe Balbi <balbi@ti.com>
Wed, 16 Jul 2014 17:50:40 +0000 (12:50 -0500)
No functional changes, just fixing one easy to spot
sparse error.

While fixing that sparse error, I had to add two
includes to a header to avoid a build error.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/fsl_mxc_udc.c
drivers/usb/gadget/udc/fsl_usb2_udc.h

index 9b140fc..f16e149 100644 (file)
@@ -18,6 +18,8 @@
 #include <linux/platform_device.h>
 #include <linux/io.h>
 
+#include "fsl_usb2_udc.h"
+
 static struct clk *mxc_ahb_clk;
 static struct clk *mxc_per_clk;
 static struct clk *mxc_ipg_clk;
index c6703bb..8471562 100644 (file)
@@ -12,6 +12,9 @@
 #ifndef __FSL_USB2_UDC_H
 #define __FSL_USB2_UDC_H
 
+#include <linux/usb/ch9.h>
+#include <linux/usb/gadget.h>
+
 /* ### define USB registers here
  */
 #define USB_MAX_CTRL_PAYLOAD           64