diff mbox

[U-Boot,02/11] usb: dwc3: linux-compat: Fix: Adding missing include files

Message ID 1424700152-8554-3-git-send-email-l.majewski@samsung.com
State Awaiting Upstream
Delegated to: Łukasz Majewski
Headers show

Commit Message

Łukasz Majewski Feb. 23, 2015, 2:02 p.m. UTC
Added #includes are necessary to allow dwc3 to compile and run on u-boot
for Odroid XU3.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
---
 drivers/usb/dwc3/linux-compat.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Kishon Vijay Abraham I Feb. 23, 2015, 2:12 p.m. UTC | #1
Hi,

On Monday 23 February 2015 07:32 PM, Lukasz Majewski wrote:
> Added #includes are necessary to allow dwc3 to compile and run on u-boot
> for Odroid XU3.

I think you should also add the files for Odroid XU3.
>
> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> ---
>   drivers/usb/dwc3/linux-compat.h | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/drivers/usb/dwc3/linux-compat.h b/drivers/usb/dwc3/linux-compat.h
> index b36f68f..40470aa 100644
> --- a/drivers/usb/dwc3/linux-compat.h
> +++ b/drivers/usb/dwc3/linux-compat.h
> @@ -12,6 +12,9 @@
>   #ifndef __DWC3_LINUX_COMPAT__
>   #define __DWC3_LINUX_COMPAT__
>
> +#include <common.h>
> +#include <linux/compat.h>

These are not needed for dwc3 core driver. So I'd assume it is required only 
for Odroid XU3 file? For other files it is redundant.

Thanks
Kishon
diff mbox

Patch

diff --git a/drivers/usb/dwc3/linux-compat.h b/drivers/usb/dwc3/linux-compat.h
index b36f68f..40470aa 100644
--- a/drivers/usb/dwc3/linux-compat.h
+++ b/drivers/usb/dwc3/linux-compat.h
@@ -12,6 +12,9 @@ 
 #ifndef __DWC3_LINUX_COMPAT__
 #define __DWC3_LINUX_COMPAT__
 
+#include <common.h>
+#include <linux/compat.h>
+
 #define pr_debug(format)                debug(format)
 #define WARN(val, format, arg...)	debug(format, ##arg)
 #define dev_WARN(dev, format, arg...)	debug(format, ##arg)