Skip to content

Commit 98e61df

Browse files
shenkimpe
authored andcommitted
powerpc/powernv/pci: Remove last IODA1 defines
Signed-off-by: Joel Stanley <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
1 parent 326b3f8 commit 98e61df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/powerpc/platforms/powernv/pci-ioda.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
#include "pci.h"
4646
#include "../../../../drivers/pci/pci.h"
4747

48-
static const char * const pnv_phb_names[] = { "IODA1", "IODA2", "NPU_OCAPI" };
48+
/* This array is indexed with enum pnv_phb_type */
49+
static const char * const pnv_phb_names[] = { "IODA2", "NPU_OCAPI" };
4950

5051
static void pnv_pci_ioda2_set_bypass(struct pnv_ioda_pe *pe, bool enable);
5152
static void pnv_pci_configure_bus(struct pci_bus *bus);
@@ -359,7 +360,7 @@ static void __init pnv_ioda_parse_m64_window(struct pnv_phb *phb)
359360
const __be32 *r;
360361
u64 pci_addr;
361362

362-
if (phb->type != PNV_PHB_IODA1 && phb->type != PNV_PHB_IODA2) {
363+
if (phb->type != PNV_PHB_IODA2) {
363364
pr_info(" Not support M64 window\n");
364365
return;
365366
}

arch/powerpc/platforms/powernv/pci.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
struct pci_dn;
1111

1212
enum pnv_phb_type {
13-
PNV_PHB_IODA1,
1413
PNV_PHB_IODA2,
1514
PNV_PHB_NPU_OCAPI,
1615
};

0 commit comments

Comments
 (0)