[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/11] hw/arm/aspeed: Rename aspeed_soc_init() as AST2400/2500 sp
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 02/11] hw/arm/aspeed: Rename aspeed_soc_init() as AST2400/2500 specific |
Date: |
Tue, 24 Oct 2023 18:24:13 +0200 |
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/arm/aspeed_soc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/arm/aspeed_soc.c b/hw/arm/aspeed_soc.c
index f6c2ead4ac..bb377e9e6e 100644
--- a/hw/arm/aspeed_soc.c
+++ b/hw/arm/aspeed_soc.c
@@ -140,7 +140,7 @@ static qemu_irq aspeed_soc_ast2400_get_irq(AspeedSoCState
*s, int dev)
return qdev_get_gpio_in(DEVICE(&s->vic), sc->irqmap[dev]);
}
-static void aspeed_soc_init(Object *obj)
+static void aspeed_ast2400_soc_init(Object *obj)
{
AspeedSoCState *s = ASPEED_SOC(obj);
AspeedSoCClass *sc = ASPEED_SOC_GET_CLASS(s);
@@ -546,7 +546,7 @@ static void aspeed_soc_ast2400_class_init(ObjectClass *oc,
void *data)
static const TypeInfo aspeed_soc_ast2400_type_info = {
.name = "ast2400-a1",
.parent = TYPE_ASPEED_SOC,
- .instance_init = aspeed_soc_init,
+ .instance_init = aspeed_ast2400_soc_init,
.instance_size = sizeof(AspeedSoCState),
.class_init = aspeed_soc_ast2400_class_init,
};
@@ -573,7 +573,7 @@ static void aspeed_soc_ast2500_class_init(ObjectClass *oc,
void *data)
static const TypeInfo aspeed_soc_ast2500_type_info = {
.name = "ast2500-a1",
.parent = TYPE_ASPEED_SOC,
- .instance_init = aspeed_soc_init,
+ .instance_init = aspeed_ast2400_soc_init,
.instance_size = sizeof(AspeedSoCState),
.class_init = aspeed_soc_ast2500_class_init,
};
--
2.41.0
- [PATCH 00/11] hw/arm/aspeed: Split AspeedSoCState per 2400/2600/10x0, Philippe Mathieu-Daudé, 2023/10/24
- [PATCH 01/11] hw/arm/aspeed: Extract code common to all boards to a common file, Philippe Mathieu-Daudé, 2023/10/24
- [PATCH 02/11] hw/arm/aspeed: Rename aspeed_soc_init() as AST2400/2500 specific,
Philippe Mathieu-Daudé <=
- [PATCH 03/11] hw/arm/aspeed: Rename aspeed_soc_realize() as AST2400/2500 specific, Philippe Mathieu-Daudé, 2023/10/24
- [PATCH 04/11] hw/arm/aspeed: Dynamically allocate AspeedMachineState::soc field, Philippe Mathieu-Daudé, 2023/10/24
- [PATCH 05/11] hw/arm/aspeed: Introduce TYPE_ASPEED10X0_SOC, Philippe Mathieu-Daudé, 2023/10/24
- [PATCH 06/11] hw/arm/aspeed: Introduce TYPE_ASPEED2600_SOC, Philippe Mathieu-Daudé, 2023/10/24
- [PATCH 08/11] hw/arm/aspeed: Check 'memory' link is set in common aspeed_soc_realize, Philippe Mathieu-Daudé, 2023/10/24