Skip to content

Commit 2f6cf79

Browse files
Gavin Shanozbenh
authored andcommitted
powerpc/powernv: Remove unused file
The patch removes unused file eeh-ioda.c and updates makefile accordingly. Besides, the definition of "struct pnv_eeh_ops" and the instances are all removed. Until now, the chip layer of EEH implementation for PowerNV platform is removed completely. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent cadf364 commit 2f6cf79

File tree

4 files changed

+1
-55
lines changed

4 files changed

+1
-55
lines changed

arch/powerpc/platforms/powernv/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ obj-y += opal-msglog.o opal-hmi.o opal-power.o
55

66
obj-$(CONFIG_SMP) += smp.o subcore.o subcore-asm.o
77
obj-$(CONFIG_PCI) += pci.o pci-p5ioc2.o pci-ioda.o
8-
obj-$(CONFIG_EEH) += eeh-ioda.o eeh-powernv.o
8+
obj-$(CONFIG_EEH) += eeh-powernv.o
99
obj-$(CONFIG_PPC_SCOM) += opal-xscom.o
1010
obj-$(CONFIG_MEMORY_FAILURE) += opal-memory-errors.o
1111
obj-$(CONFIG_TRACEPOINTS) += opal-tracepoints.o

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

Lines changed: 0 additions & 38 deletions
This file was deleted.

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2078,9 +2078,6 @@ static void __init pnv_pci_init_ioda_phb(struct device_node *np,
20782078
phb->get_pe_state = pnv_ioda_get_pe_state;
20792079
phb->freeze_pe = pnv_ioda_freeze_pe;
20802080
phb->unfreeze_pe = pnv_ioda_unfreeze_pe;
2081-
#ifdef CONFIG_EEH
2082-
phb->eeh_ops = &ioda_eeh_ops;
2083-
#endif
20842081

20852082
/* Setup RID -> PE mapping function */
20862083
phb->bdfn_to_pe = pnv_ioda_bdfn_to_pe;

arch/powerpc/platforms/powernv/pci.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ struct pnv_ioda_pe {
7575
struct list_head list;
7676
};
7777

78-
/* IOC dependent EEH operations */
79-
#ifdef CONFIG_EEH
80-
struct pnv_eeh_ops {
81-
};
82-
#endif /* CONFIG_EEH */
83-
8478
#define PNV_PHB_FLAG_EEH (1 << 0)
8579

8680
struct pnv_phb {
@@ -94,10 +88,6 @@ struct pnv_phb {
9488
int initialized;
9589
spinlock_t lock;
9690

97-
#ifdef CONFIG_EEH
98-
struct pnv_eeh_ops *eeh_ops;
99-
#endif
100-
10191
#ifdef CONFIG_DEBUG_FS
10292
int has_dbgfs;
10393
struct dentry *dbgfs;
@@ -203,9 +193,6 @@ struct pnv_phb {
203193
};
204194

205195
extern struct pci_ops pnv_pci_ops;
206-
#ifdef CONFIG_EEH
207-
extern struct pnv_eeh_ops ioda_eeh_ops;
208-
#endif
209196

210197
void pnv_pci_dump_phb_diag_data(struct pci_controller *hose,
211198
unsigned char *log_buff);

0 commit comments

Comments
 (0)