[PATCH] spi: rockchip_sfc: Add missing include for dm/device_compat.h

Kever Yang kever.yang at rock-chips.com
Mon Mar 28 14:39:32 CEST 2022


On 2022/3/25 23:40, Chris Morgan wrote:
> From: Chris Morgan <macromorgan at hotmail.com>
>
> Add missing include for dm/device_compat.h. Without this include the
> SFC driver fails to compile because dev_err and dev_dbg are not
> defined.
>
> Signed-off-by: Chris Morgan <macromorgan at hotmail.com>

Reviewed-by: Kever Yang <kever.yang at rock-chips.com>

Thanks,
- Kever
> ---
>   drivers/spi/rockchip_sfc.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/spi/rockchip_sfc.c b/drivers/spi/rockchip_sfc.c
> index e098addddc..851a648298 100644
> --- a/drivers/spi/rockchip_sfc.c
> +++ b/drivers/spi/rockchip_sfc.c
> @@ -12,6 +12,7 @@
>   #include <bouncebuf.h>
>   #include <clk.h>
>   #include <dm.h>
> +#include <dm/device_compat.h>
>   #include <linux/bitops.h>
>   #include <linux/delay.h>
>   #include <linux/iopoll.h>


More information about the U-Boot mailing list