aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64/rockchip/rk_pcie.c
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@FreeBSD.org>2021-05-19 15:27:42 +0000
committerMarcin Wojtas <mw@FreeBSD.org>2021-05-20 09:22:25 +0000
commit240429103cd05bcecb20fbfd8310cf3faff39681 (patch)
tree58ca3bb65b5817f51a4ebd1698cf0cce855a82df /sys/arm64/rockchip/rk_pcie.c
parentb08bf4c35caa2baaa0453b7979ed538cf71b6de5 (diff)
downloadsrc-240429103cd05bcecb20fbfd8310cf3faff39681.tar.gz
src-240429103cd05bcecb20fbfd8310cf3faff39681.zip
Rename ofwpci.c to ofw_pcib.c
It's a class0 driver that implements some pcib methods and creates a pci bus as its children. The "ofw_pci" name will be used by a new driver that will be a subclass of the pci bus. No functional changes intended. Submitted by: Kornel Duleba <mindal@semihalf.com> Reviewed by: andrew Obtained from: Semihalf Sponsored by: Alstom Group Differential Revision: https://reviews.freebsd.org/D30226
Diffstat (limited to 'sys/arm64/rockchip/rk_pcie.c')
-rw-r--r--sys/arm64/rockchip/rk_pcie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm64/rockchip/rk_pcie.c b/sys/arm64/rockchip/rk_pcie.c
index ea4ce5b568e6..dabd7931e442 100644
--- a/sys/arm64/rockchip/rk_pcie.c
+++ b/sys/arm64/rockchip/rk_pcie.c
@@ -1276,7 +1276,7 @@ rk_pcie_attach(device_t dev)
if (rv != 0)
goto out;
- rv = ofw_pci_init(dev);
+ rv = ofw_pcib_init(dev);
if (rv != 0)
goto out;
@@ -1383,7 +1383,7 @@ static device_method_t rk_pcie_methods[] = {
};
DEFINE_CLASS_1(pcib, rk_pcie_driver, rk_pcie_methods,
- sizeof(struct rk_pcie_softc), ofw_pci_driver);
+ sizeof(struct rk_pcie_softc), ofw_pcib_driver);
static devclass_t rk_pcie_devclass;
DRIVER_MODULE( rk_pcie, simplebus, rk_pcie_driver, rk_pcie_devclass,
NULL, NULL);