diff mbox series

usb: xhci-brcm: Include header file needed for dev_err

Message ID 1b58b9e491d130823c7d8ed42153691f44138d37.1633447247.git.stefan@agner.ch
State Superseded
Delegated to: Bin Meng
Headers show
Series usb: xhci-brcm: Include header file needed for dev_err | expand

Commit Message

Stefan Agner Oct. 5, 2021, 3:20 p.m. UTC
dev_err seems to be moved to different header file. Include
dm/device_compat.h file to compile properly.

Fixes: 69dae8902b16 ("linux/compat.h: Remove redefinition of dev_xxx macros")
Signed-off-by: Stefan Agner <stefan@agner.ch>
---

 drivers/usb/host/xhci-brcm.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Simon Glass Oct. 5, 2021, 5:27 p.m. UTC | #1
Hi Stefan,

On Tue, 5 Oct 2021 at 09:21, Stefan Agner <stefan@agner.ch> wrote:
>
> dev_err seems to be moved to different header file. Include
> dm/device_compat.h file to compile properly.
>
> Fixes: 69dae8902b16 ("linux/compat.h: Remove redefinition of dev_xxx macros")
> Signed-off-by: Stefan Agner <stefan@agner.ch>
> ---
>
>  drivers/usb/host/xhci-brcm.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/host/xhci-brcm.c b/drivers/usb/host/xhci-brcm.c
> index 27c4bbfcba..ee3b55242e 100644
> --- a/drivers/usb/host/xhci-brcm.c
> +++ b/drivers/usb/host/xhci-brcm.c
> @@ -5,6 +5,7 @@
>
>  #include <common.h>
>  #include <dm.h>
> +#include <dm/device_compat.h>
>  #include <fdtdec.h>
>  #include <usb.h>
>  #include <asm/io.h>

Should go here. Please see https://www.denx.de/wiki/U-Boot/CodingStyle
> --
> 2.33.0
>

Regards,
Simon
diff mbox series

Patch

diff --git a/drivers/usb/host/xhci-brcm.c b/drivers/usb/host/xhci-brcm.c
index 27c4bbfcba..ee3b55242e 100644
--- a/drivers/usb/host/xhci-brcm.c
+++ b/drivers/usb/host/xhci-brcm.c
@@ -5,6 +5,7 @@ 
 
 #include <common.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <fdtdec.h>
 #include <usb.h>
 #include <asm/io.h>