From 7b466fb60b7d3f7793baf419b8b67b4b324702f4 Mon Sep 17 00:00:00 2001 From: Nicholas Chin Date: Sat, 5 Oct 2024 21:40:38 -0600 Subject: soc/*: Explicitly include static.h for DEV_PTR As per commit 05a13e7ed9b9 ("sconfig: Move (WEAK_)DEV_PTR from device.h to static.h"), sources that require access to devicetree static devices should directly include static.h. This allows static.h to be removed from device.h, eliminating unnecessary dependencies on the devicetree for objects that only need the device types and function declarations. The DEV_PTR macro resolves to names declared in static_devices.h, which is then included in static.h, so include the header whenever the macro is used. Change-Id: Ie281e9a9c015b19bfc96b83021a6e3afd98abcc3 Signed-off-by: Nicholas Chin Reviewed-on: https://review.coreboot.org/c/coreboot/+/84677 Reviewed-by: Felix Singer Reviewed-by: Angel Pons Reviewed-by: Jayvik Desai Tested-by: build bot (Jenkins) --- src/soc/amd/phoenix/include/soc/xhci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/amd/phoenix/include') diff --git a/src/soc/amd/phoenix/include/soc/xhci.h b/src/soc/amd/phoenix/include/soc/xhci.h index 5b7d6eb204..72e03cc7c4 100644 --- a/src/soc/amd/phoenix/include/soc/xhci.h +++ b/src/soc/amd/phoenix/include/soc/xhci.h @@ -3,7 +3,7 @@ #ifndef AMD_PHOENIX_XHCI_H #define AMD_PHOENIX_XHCI_H -#include +#include #define SOC_XHCI_0 DEV_PTR(xhci_0) #define SOC_XHCI_1 DEV_PTR(xhci_1) -- cgit v1.2.3