Skip to contentSkip to conversation

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

PATCH In review Chris Morgan 2 participants 2 messages Mar 25, 2022 – Mar 28, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

From: Chris Morgan <[email protected]>

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.

---
 drivers/spi/rockchip_sfc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/spi/rockchip_sfc.c +1 -0
index e098addddc..851a648298 100644
@@ -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>
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Chris Morgan

From: Chris Morgan <[email protected]>

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.

Thanks,
- Kever

Quoted 16 lines
---
  drivers/spi/rockchip_sfc.c | 1 +
  1 file changed, 1 insertion(+)
drivers/spi/rockchip_sfc.c +1 -0
index e098addddc..851a648298 100644
@@ -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>