[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 21/25] hw/ssi: allow NULL realize callbacks for peripherals
From: |
Octavian Purdila |
Subject: |
[PATCH 21/25] hw/ssi: allow NULL realize callbacks for peripherals |
Date: |
Wed, 18 Sep 2024 12:22:49 -0700 |
Signed-off-by: Octavian Purdila <tavip@google.com>
---
hw/ssi/ssi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/ssi/ssi.c b/hw/ssi/ssi.c
index 3f357e8f16..d1f3ce7c22 100644
--- a/hw/ssi/ssi.c
+++ b/hw/ssi/ssi.c
@@ -105,7 +105,9 @@ static void ssi_peripheral_realize(DeviceState *dev, Error
**errp)
}
s->spc = ssc;
- ssc->realize(s, errp);
+ if (ssc->realize) {
+ ssc->realize(s, errp);
+ }
}
static Property ssi_peripheral_properties[] = {
--
2.46.0.662.g92d0881bb0-goog
- [PATCH 13/25] hw/arm: add basic support for the RT500 SoC, (continued)
- [PATCH 13/25] hw/arm: add basic support for the RT500 SoC, Octavian Purdila, 2024/09/18
- [PATCH 15/25] tests/qtest: add register access macros and functions, Octavian Purdila, 2024/09/18
- [PATCH 17/25] tests/qtest: add flexcomm tests, Octavian Purdila, 2024/09/18
- [PATCH 16/25] system/qtest: add APIS to check for memory access failures, Octavian Purdila, 2024/09/18
- [PATCH 18/25] tests/qtest: add flexcomm usart tests, Octavian Purdila, 2024/09/18
- [PATCH 19/25] hw/misc: add i2c-tester, Octavian Purdila, 2024/09/18
- [PATCH 20/25] tests/qtest: add tests for flexcomm i2c, Octavian Purdila, 2024/09/18
- [PATCH 21/25] hw/ssi: allow NULL realize callbacks for peripherals,
Octavian Purdila <=
- [PATCH 22/25] hw/misc: add spi-tester, Octavian Purdila, 2024/09/18
- [PATCH 23/25] tests/qtest: add tests for flexcomm spi, Octavian Purdila, 2024/09/18
- [PATCH 25/25] tests/qtest: add tests for RT500's clock controller, Octavian Purdila, 2024/09/18
- [PATCH 24/25] systems/qtest: add device clock APIs, Octavian Purdila, 2024/09/18