summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2014-07-16 12:23:55 -0500
committerFelipe Balbi <balbi@ti.com>2014-07-16 12:50:40 -0500
commitc9d872592611b98d3481e978f93b90a5fa194252 (patch)
tree38226fca0ac743d8b8a9cc9421436757e66f9318 /drivers/usb
parentc43e97b2c5e038bbec525fecb33fde4800631a55 (diff)
downloadop-kernel-dev-c9d872592611b98d3481e978f93b90a5fa194252.zip
op-kernel-dev-c9d872592611b98d3481e978f93b90a5fa194252.tar.gz
usb: gadget: udc: fsl_mxc_udc: fix sparse error
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/udc/fsl_mxc_udc.c2
-rw-r--r--drivers/usb/gadget/udc/fsl_usb2_udc.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/fsl_mxc_udc.c b/drivers/usb/gadget/udc/fsl_mxc_udc.c
index 9b140fc..f16e149 100644
--- a/drivers/usb/gadget/udc/fsl_mxc_udc.c
+++ b/drivers/usb/gadget/udc/fsl_mxc_udc.c
@@ -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;
diff --git a/drivers/usb/gadget/udc/fsl_usb2_udc.h b/drivers/usb/gadget/udc/fsl_usb2_udc.h
index c6703bb..8471562 100644
--- a/drivers/usb/gadget/udc/fsl_usb2_udc.h
+++ b/drivers/usb/gadget/udc/fsl_usb2_udc.h
@@ -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
OpenPOWER on IntegriCloud