mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-24 05:01:03 +02:00
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:
committed by
Michael Ellerman
parent
1f8fa0cd6a
commit
5d69e46a21
@@ -216,7 +216,6 @@ enum {
|
|||||||
|
|
||||||
struct eeh_ops {
|
struct eeh_ops {
|
||||||
char *name;
|
char *name;
|
||||||
int (*init)(void);
|
|
||||||
struct eeh_dev *(*probe)(struct pci_dev *pdev);
|
struct eeh_dev *(*probe)(struct pci_dev *pdev);
|
||||||
int (*set_option)(struct eeh_pe *pe, int option);
|
int (*set_option)(struct eeh_pe *pe, int option);
|
||||||
int (*get_state)(struct eeh_pe *pe, int *delay);
|
int (*get_state)(struct eeh_pe *pe, int *delay);
|
||||||
|
@@ -965,14 +965,6 @@ int eeh_init(struct eeh_ops *ops)
|
|||||||
return ret;
|
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 */
|
/* Initialize PHB PEs */
|
||||||
list_for_each_entry_safe(hose, tmp, &hose_list, list_node)
|
list_for_each_entry_safe(hose, tmp, &hose_list, list_node)
|
||||||
eeh_phb_pe_create(hose);
|
eeh_phb_pe_create(hose);
|
||||||
|
Reference in New Issue
Block a user