Message ID | 157623838530.360005.15470128760871845396.stgit@bahia.lan |
---|---|
State | New |
Headers | show |
Series | ppc/pnv: Get rid of chip_type attributes | expand |
On 13/12/2019 12:59, Greg Kurz wrote: > It isn't used anymore. > > Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Cédric Le Goater <clg@kaod.org> > --- > hw/ppc/pnv_psi.c | 3 --- > include/hw/ppc/pnv_psi.h | 1 - > 2 files changed, 4 deletions(-) > > diff --git a/hw/ppc/pnv_psi.c b/hw/ppc/pnv_psi.c > index 98a82b25e01f..75e20d9da08b 100644 > --- a/hw/ppc/pnv_psi.c > +++ b/hw/ppc/pnv_psi.c > @@ -574,7 +574,6 @@ static void pnv_psi_power8_class_init(ObjectClass *klass, void *data) > dc->desc = "PowerNV PSI Controller POWER8"; > dc->realize = pnv_psi_power8_realize; > > - ppc->chip_type = PNV_CHIP_POWER8; > ppc->xscom_pcba = PNV_XSCOM_PSIHB_BASE; > ppc->xscom_size = PNV_XSCOM_PSIHB_SIZE; > ppc->bar_mask = PSIHB_BAR_MASK; > @@ -884,7 +883,6 @@ static void pnv_psi_power9_class_init(ObjectClass *klass, void *data) > dc->desc = "PowerNV PSI Controller POWER9"; > dc->realize = pnv_psi_power9_realize; > > - ppc->chip_type = PNV_CHIP_POWER9; > ppc->xscom_pcba = PNV9_XSCOM_PSIHB_BASE; > ppc->xscom_size = PNV9_XSCOM_PSIHB_SIZE; > ppc->bar_mask = PSIHB9_BAR_MASK; > @@ -915,7 +913,6 @@ static void pnv_psi_power10_class_init(ObjectClass *klass, void *data) > > dc->desc = "PowerNV PSI Controller POWER10"; > > - ppc->chip_type = PNV_CHIP_POWER10; > ppc->xscom_pcba = PNV10_XSCOM_PSIHB_BASE; > ppc->xscom_size = PNV10_XSCOM_PSIHB_SIZE; > ppc->compat = compat; > diff --git a/include/hw/ppc/pnv_psi.h b/include/hw/ppc/pnv_psi.h > index fc068c95e543..f0f5b5519767 100644 > --- a/include/hw/ppc/pnv_psi.h > +++ b/include/hw/ppc/pnv_psi.h > @@ -79,7 +79,6 @@ typedef struct Pnv9Psi { > typedef struct PnvPsiClass { > SysBusDeviceClass parent_class; > > - int chip_type; > uint32_t xscom_pcba; > uint32_t xscom_size; > uint64_t bar_mask; >
diff --git a/hw/ppc/pnv_psi.c b/hw/ppc/pnv_psi.c index 98a82b25e01f..75e20d9da08b 100644 --- a/hw/ppc/pnv_psi.c +++ b/hw/ppc/pnv_psi.c @@ -574,7 +574,6 @@ static void pnv_psi_power8_class_init(ObjectClass *klass, void *data) dc->desc = "PowerNV PSI Controller POWER8"; dc->realize = pnv_psi_power8_realize; - ppc->chip_type = PNV_CHIP_POWER8; ppc->xscom_pcba = PNV_XSCOM_PSIHB_BASE; ppc->xscom_size = PNV_XSCOM_PSIHB_SIZE; ppc->bar_mask = PSIHB_BAR_MASK; @@ -884,7 +883,6 @@ static void pnv_psi_power9_class_init(ObjectClass *klass, void *data) dc->desc = "PowerNV PSI Controller POWER9"; dc->realize = pnv_psi_power9_realize; - ppc->chip_type = PNV_CHIP_POWER9; ppc->xscom_pcba = PNV9_XSCOM_PSIHB_BASE; ppc->xscom_size = PNV9_XSCOM_PSIHB_SIZE; ppc->bar_mask = PSIHB9_BAR_MASK; @@ -915,7 +913,6 @@ static void pnv_psi_power10_class_init(ObjectClass *klass, void *data) dc->desc = "PowerNV PSI Controller POWER10"; - ppc->chip_type = PNV_CHIP_POWER10; ppc->xscom_pcba = PNV10_XSCOM_PSIHB_BASE; ppc->xscom_size = PNV10_XSCOM_PSIHB_SIZE; ppc->compat = compat; diff --git a/include/hw/ppc/pnv_psi.h b/include/hw/ppc/pnv_psi.h index fc068c95e543..f0f5b5519767 100644 --- a/include/hw/ppc/pnv_psi.h +++ b/include/hw/ppc/pnv_psi.h @@ -79,7 +79,6 @@ typedef struct Pnv9Psi { typedef struct PnvPsiClass { SysBusDeviceClass parent_class; - int chip_type; uint32_t xscom_pcba; uint32_t xscom_size; uint64_t bar_mask;
It isn't used anymore. Signed-off-by: Greg Kurz <groug@kaod.org> --- hw/ppc/pnv_psi.c | 3 --- include/hw/ppc/pnv_psi.h | 1 - 2 files changed, 4 deletions(-)