mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
powerpc/eeh: Remove eeh_dev.c
The only thing in this file is eeh_dev_init() which is allocates and initialises an eeh_dev based on a pci_dn. This is only ever called from pci_dn.c so move it into there and remove the file. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200725081231.39076-2-oohall@gmail.com
This commit is contained in:
committed by
Michael Ellerman
parent
475028efc7
commit
d74ee8e9d1
@@ -124,6 +124,26 @@ struct pci_dn *pci_get_pdn(struct pci_dev *pdev)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_EEH
|
||||
static struct eeh_dev *eeh_dev_init(struct pci_dn *pdn)
|
||||
{
|
||||
struct eeh_dev *edev;
|
||||
|
||||
/* Allocate EEH device */
|
||||
edev = kzalloc(sizeof(*edev), GFP_KERNEL);
|
||||
if (!edev)
|
||||
return NULL;
|
||||
|
||||
/* Associate EEH device with OF node */
|
||||
pdn->edev = edev;
|
||||
edev->pdn = pdn;
|
||||
edev->bdfn = (pdn->busno << 8) | pdn->devfn;
|
||||
edev->controller = pdn->phb;
|
||||
|
||||
return edev;
|
||||
}
|
||||
#endif /* CONFIG_EEH */
|
||||
|
||||
#ifdef CONFIG_PCI_IOV
|
||||
static struct pci_dn *add_one_sriov_vf_pdn(struct pci_dn *parent,
|
||||
int vf_index,
|
||||
|
||||
Reference in New Issue
Block a user