Skip to content

Commit 5d69e46

Browse files
oohalmpe
authored andcommitted
powerpc/eeh: Delete eeh_ops->init
No longer used since the platforms perform their EEH initialisation before calling eeh_init(). Signed-off-by: Oliver O'Halloran <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1f8fa0c commit 5d69e46

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

arch/powerpc/include/asm/eeh.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ enum {
216216

217217
struct eeh_ops {
218218
char *name;
219-
int (*init)(void);
220219
struct eeh_dev *(*probe)(struct pci_dev *pdev);
221220
int (*set_option)(struct eeh_pe *pe, int option);
222221
int (*get_state)(struct eeh_pe *pe, int *delay);

arch/powerpc/kernel/eeh.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -965,14 +965,6 @@ int eeh_init(struct eeh_ops *ops)
965965
return ret;
966966
}
967967

968-
if (eeh_ops->init)
969-
ret = eeh_ops->init();
970-
if (ret) {
971-
pr_warn("%s: platform EEH init failed (%d)\n",
972-
__func__, ret);
973-
return ret;
974-
}
975-
976968
/* Initialize PHB PEs */
977969
list_for_each_entry_safe(hose, tmp, &hose_list, list_node)
978970
eeh_phb_pe_create(hose);

0 commit comments

Comments
 (0)