summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Wunderlich <frank-w@public-files.de>2021-03-16 19:05:33 +0100
committerTom Rini <trini@konsulko.com>2021-03-19 10:35:19 -0400
commit93cac85d78d9f105ff2e4651c558607acef93b64 (patch)
tree46e658d357a4a8927b95b242d79615baee96405d
parente3310c21a43c1e3c004c6b53ee9179420a1be375 (diff)
downloadu-boot-93cac85d78d9f105ff2e4651c558607acef93b64.tar.gz
ahci: mediatek: fix undefined reference of dev_err
building with MTK_AHCI enabled results in implicit declaration and undefined reference of dev_err followed by a segfault of gcc drivers/ata/mtk_ahci.c: In function 'mtk_ahci_parse_property': drivers/ata/mtk_ahci.c:65:4: warning: implicit declaration of function 'dev_err' drivers/ata/mtk_ahci.c:65: undefined reference to `dev_err' in function `mtk_ahci_probe': drivers/ata/mtk_ahci.c:92: undefined reference to `dev_err' Segmentation fault fix this by adding the dm/device_compat.h to includes Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
-rw-r--r--drivers/ata/mtk_ahci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/mtk_ahci.c b/drivers/ata/mtk_ahci.c
index 554175bc00..2c5227df30 100644
--- a/drivers/ata/mtk_ahci.c
+++ b/drivers/ata/mtk_ahci.c
@@ -21,6 +21,7 @@
#include <sata.h>
#include <scsi.h>
#include <syscon.h>
+#include <dm/device_compat.h>
#define SYS_CFG 0x14
#define SYS_CFG_SATA_MSK GENMASK(31, 30)