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 <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200918093050.37344-4-oohall@gmail.com
This commit is contained in:
Oliver O'Halloran 2020-09-18 19:30:45 +10:00 committed by Michael Ellerman
parent 1f8fa0cd6a
commit 5d69e46a21
2 changed files with 0 additions and 9 deletions

View file

@ -216,7 +216,6 @@ enum {
struct eeh_ops {
char *name;
int (*init)(void);
struct eeh_dev *(*probe)(struct pci_dev *pdev);
int (*set_option)(struct eeh_pe *pe, int option);
int (*get_state)(struct eeh_pe *pe, int *delay);

View file

@ -965,14 +965,6 @@ int eeh_init(struct eeh_ops *ops)
return ret;
}
if (eeh_ops->init)
ret = eeh_ops->init();
if (ret) {
pr_warn("%s: platform EEH init failed (%d)\n",
__func__, ret);
return ret;
}
/* Initialize PHB PEs */
list_for_each_entry_safe(hose, tmp, &hose_list, list_node)
eeh_phb_pe_create(hose);