diff options
author | Felipe Balbi <balbi@ti.com> | 2014-07-16 13:23:55 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-07-16 13:50:40 -0400 |
commit | c9d872592611b98d3481e978f93b90a5fa194252 (patch) | |
tree | 38226fca0ac743d8b8a9cc9421436757e66f9318 | |
parent | c43e97b2c5e038bbec525fecb33fde4800631a55 (diff) |
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>
-rw-r--r-- | drivers/usb/gadget/udc/fsl_mxc_udc.c | 2 | ||||
-rw-r--r-- | drivers/usb/gadget/udc/fsl_usb2_udc.h | 3 |
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 9b140fc4d3bc..f16e149c5b3e 100644 --- a/drivers/usb/gadget/udc/fsl_mxc_udc.c +++ b/drivers/usb/gadget/udc/fsl_mxc_udc.c | |||
@@ -18,6 +18,8 @@ | |||
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | #include <linux/io.h> | 19 | #include <linux/io.h> |
20 | 20 | ||
21 | #include "fsl_usb2_udc.h" | ||
22 | |||
21 | static struct clk *mxc_ahb_clk; | 23 | static struct clk *mxc_ahb_clk; |
22 | static struct clk *mxc_per_clk; | 24 | static struct clk *mxc_per_clk; |
23 | static struct clk *mxc_ipg_clk; | 25 | 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 c6703bb07b23..84715625b2b3 100644 --- a/drivers/usb/gadget/udc/fsl_usb2_udc.h +++ b/drivers/usb/gadget/udc/fsl_usb2_udc.h | |||
@@ -12,6 +12,9 @@ | |||
12 | #ifndef __FSL_USB2_UDC_H | 12 | #ifndef __FSL_USB2_UDC_H |
13 | #define __FSL_USB2_UDC_H | 13 | #define __FSL_USB2_UDC_H |
14 | 14 | ||
15 | #include <linux/usb/ch9.h> | ||
16 | #include <linux/usb/gadget.h> | ||
17 | |||
15 | /* ### define USB registers here | 18 | /* ### define USB registers here |
16 | */ | 19 | */ |
17 | #define USB_MAX_CTRL_PAYLOAD 64 | 20 | #define USB_MAX_CTRL_PAYLOAD 64 |