[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 5/8] ppc/pnv: remove PnvPhb4PecStack::stack_no
From: |
Daniel Henrique Barboza |
Subject: |
[PATCH v2 5/8] ppc/pnv: remove PnvPhb4PecStack::stack_no |
Date: |
Fri, 14 Jan 2022 15:07:16 -0300 |
pnv_pec_default_phb_realize() stopped using it after the previous patch and
no one else is using it.
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
---
hw/pci-host/pnv_phb4_pec.c | 2 --
include/hw/pci-host/pnv_phb4.h | 3 ---
2 files changed, 5 deletions(-)
diff --git a/hw/pci-host/pnv_phb4_pec.c b/hw/pci-host/pnv_phb4_pec.c
index a80a21db77..d6405d6ca3 100644
--- a/hw/pci-host/pnv_phb4_pec.c
+++ b/hw/pci-host/pnv_phb4_pec.c
@@ -166,7 +166,6 @@ static void pnv_pec_realize(DeviceState *dev, Error **errp)
PnvPhb4PecStack *stack = &pec->stacks[i];
Object *stk_obj = OBJECT(stack);
- object_property_set_int(stk_obj, "stack-no", i, &error_abort);
object_property_set_link(stk_obj, "pec", OBJECT(pec), &error_abort);
if (defaults_enabled()) {
@@ -314,7 +313,6 @@ static void pnv_pec_stk_realize(DeviceState *dev, Error
**errp)
}
static Property pnv_pec_stk_properties[] = {
- DEFINE_PROP_UINT32("stack-no", PnvPhb4PecStack, stack_no, 0),
DEFINE_PROP_LINK("pec", PnvPhb4PecStack, pec, TYPE_PNV_PHB4_PEC,
PnvPhb4PecState *),
DEFINE_PROP_END_OF_LIST(),
diff --git a/include/hw/pci-host/pnv_phb4.h b/include/hw/pci-host/pnv_phb4.h
index a9059b7279..2be56b7afd 100644
--- a/include/hw/pci-host/pnv_phb4.h
+++ b/include/hw/pci-host/pnv_phb4.h
@@ -171,9 +171,6 @@ OBJECT_DECLARE_SIMPLE_TYPE(PnvPhb4PecStack,
PNV_PHB4_PEC_STACK)
struct PnvPhb4PecStack {
DeviceState parent;
- /* My own stack number */
- uint32_t stack_no;
-
/* The owner PEC */
PnvPhb4PecState *pec;
--
2.33.1
- [PATCH v2 0/8] remove PnvPhb4PecStack from Powernv9, Daniel Henrique Barboza, 2022/01/14
- [PATCH v2 1/8] ppc/pnv: introduce PnvPHB4 'pec' property, Daniel Henrique Barboza, 2022/01/14
- [PATCH v2 3/8] ppc/pnv: remove stack pointer from PnvPHB4, Daniel Henrique Barboza, 2022/01/14
- [PATCH v2 4/8] ppc/pnv: move default_phb_realize() to pec_realize(), Daniel Henrique Barboza, 2022/01/14
- [PATCH v2 5/8] ppc/pnv: remove PnvPhb4PecStack::stack_no,
Daniel Henrique Barboza <=
- [PATCH v2 2/8] ppc/pnv: reduce stack->stack_no usage, Daniel Henrique Barboza, 2022/01/14
- [PATCH v2 6/8] ppc/pnv: make PECs create and realize PHB4s, Daniel Henrique Barboza, 2022/01/14
- [PATCH v2 7/8] ppc/pnv: remove PnvPhb4PecStack object, Daniel Henrique Barboza, 2022/01/14
- [PATCH v2 8/8] ppc/pnv: rename pnv_pec_stk_update_map(), Daniel Henrique Barboza, 2022/01/14
- Re: [PATCH v2 0/8] remove PnvPhb4PecStack from Powernv9, Cédric Le Goater, 2022/01/18