From: Patrick Delaunay <patrick.delaunay@foss.st.com>
Date: Wed, 24 Feb 2021 10:19:43 +0000 (+0100)
Subject: scmi: Include device_compat.h
X-Git-Tag: v2025.01-rc5-pxa1908~1963^2~18
X-Git-Url: http://git.dujemihanovic.xyz/browse.php?a=commitdiff_plain;h=1b9ad5198afa4d6c39ec605935dab468f7559b9e;p=u-boot.git

scmi: Include device_compat.h

Include the file needed for log function prototype, this patch solves the
compilation issue for undefined reference to `dev_err'.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
---

diff --git a/drivers/firmware/scmi/smccc_agent.c b/drivers/firmware/scmi/smccc_agent.c
index 64d0929f69..81c2884bb7 100644
--- a/drivers/firmware/scmi/smccc_agent.c
+++ b/drivers/firmware/scmi/smccc_agent.c
@@ -9,6 +9,7 @@
 #include <scmi_agent.h>
 #include <scmi_agent-uclass.h>
 #include <dm/devres.h>
+#include <dm/device_compat.h>
 #include <dm/device-internal.h>
 #include <linux/arm-smccc.h>
 #include <linux/compat.h>