From: Kuan-Jui Chiu <[email protected]>
Add the missing header guards to avoid re-definition
errors when this header is included multiple times.
Fixes: 8c55a630c5b ("hw/sd: Add Axiado SD host controller with eMMC PHY")
Signed-off-by: Kuan-Jui Chiu <[email protected]>
Reviewed-by: Jack Wang <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
include/hw/sd/axiado_sdhci.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/hw/sd/axiado_sdhci.h b/include/hw/sd/axiado_sdhci.h
index 85afebad931..ab52eb8185f 100644
--- a/include/hw/sd/axiado_sdhci.h
+++ b/include/hw/sd/axiado_sdhci.h
@@ -6,6 +6,9 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
+#ifndef AXIADO_SDHCI_H
+#define AXIADO_SDHCI_H
+
#include "hw/sd/sdhci.h"
#include "qom/object.h"
@@ -19,3 +22,5 @@ typedef struct AxiadoSDHCIState {
MemoryRegion emmc_phy;
BusState *sd_bus;
} AxiadoSDHCIState;
+
+#endif /* AXIADO_SDHCI_H */
--
2.53.0