Add fdt to name of a fdt specific function
Rename pci_host_generic_attach to pci_host_generic_fdt_attach to be consistant with the acpi attachment. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
5cebd8305a
commit
ad52fba11e
@ -105,7 +105,7 @@ al_pcib_attach(device_t dev)
|
||||
{
|
||||
int rv;
|
||||
|
||||
rv = pci_host_generic_attach(dev);
|
||||
rv = pci_host_generic_fdt_attach(dev);
|
||||
|
||||
/* Annapurna quirk: configure vendor-specific registers */
|
||||
if (rv == 0)
|
||||
|
@ -205,7 +205,7 @@ thunder_pcie_fdt_attach(device_t dev)
|
||||
if (thunder_pcie_ofw_bus_attach(dev) != 0)
|
||||
return (ENXIO);
|
||||
|
||||
return (pci_host_generic_attach(dev));
|
||||
return (pci_host_generic_fdt_attach(dev));
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -164,7 +164,7 @@ pci_host_generic_setup_fdt(device_t dev)
|
||||
}
|
||||
|
||||
int
|
||||
pci_host_generic_attach(device_t dev)
|
||||
pci_host_generic_fdt_attach(device_t dev)
|
||||
{
|
||||
int error;
|
||||
|
||||
@ -481,7 +481,7 @@ generic_pcie_ofw_bus_attach(device_t dev)
|
||||
|
||||
static device_method_t generic_pcie_fdt_methods[] = {
|
||||
DEVMETHOD(device_probe, generic_pcie_fdt_probe),
|
||||
DEVMETHOD(device_attach, pci_host_generic_attach),
|
||||
DEVMETHOD(device_attach, pci_host_generic_fdt_attach),
|
||||
DEVMETHOD(bus_alloc_resource, pci_host_generic_core_alloc_resource),
|
||||
DEVMETHOD(bus_release_resource, pci_host_generic_core_release_resource),
|
||||
|
||||
|
@ -48,7 +48,7 @@ DECLARE_CLASS(generic_pcie_fdt_driver);
|
||||
struct resource *pci_host_generic_alloc_resource(device_t,
|
||||
device_t, int, int *, rman_res_t, rman_res_t, rman_res_t, u_int);
|
||||
int pci_host_generic_setup_fdt(device_t);
|
||||
int pci_host_generic_attach(device_t);
|
||||
int pci_host_generic_fdt_attach(device_t);
|
||||
int generic_pcie_get_id(device_t, device_t, enum pci_id_type, uintptr_t *);
|
||||
|
||||
#endif /* __PCI_HOST_GENERIC_FDT_H_ */
|
||||
|
@ -396,7 +396,7 @@ xlnx_pcib_fdt_attach(device_t dev)
|
||||
if (error)
|
||||
return (error);
|
||||
|
||||
return (pci_host_generic_attach(dev));
|
||||
return (pci_host_generic_fdt_attach(dev));
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user