svn commit: r363121 - in head/sys/arm: broadcom/bcm2835 mv
Michal Meloun
mmel at FreeBSD.org
Sun Jul 12 07:27:22 UTC 2020
Author: mmel
Date: Sun Jul 12 07:27:21 2020
New Revision: 363121
URL: https://svnweb.freebsd.org/changeset/base/363121
Log:
Fix the module name for some arm drivers.
Module name (unlike of the of driver name) must be system wide unique.
Reported by: Mark Millard(bcm_pci), andrew(mvebu_gpio)
MFC with: r362954, r362385
Modified:
head/sys/arm/broadcom/bcm2835/bcm2838_pci.c
head/sys/arm/mv/mvebu_gpio.c
Modified: head/sys/arm/broadcom/bcm2835/bcm2838_pci.c
==============================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2838_pci.c Sun Jul 12 07:25:02 2020 (r363120)
+++ head/sys/arm/broadcom/bcm2835/bcm2838_pci.c Sun Jul 12 07:27:21 2020 (r363121)
@@ -739,5 +739,5 @@ DEFINE_CLASS_1(pcib, bcm_pcib_driver, bcm_pcib_methods
sizeof(struct bcm_pcib_softc), generic_pcie_fdt_driver);
static devclass_t bcm_pcib_devclass;
-DRIVER_MODULE(pcib, simplebus, bcm_pcib_driver, bcm_pcib_devclass, 0, 0);
+DRIVER_MODULE(bcm_pcib, simplebus, bcm_pcib_driver, bcm_pcib_devclass, 0, 0);
Modified: head/sys/arm/mv/mvebu_gpio.c
==============================================================================
--- head/sys/arm/mv/mvebu_gpio.c Sun Jul 12 07:25:02 2020 (r363120)
+++ head/sys/arm/mv/mvebu_gpio.c Sun Jul 12 07:27:21 2020 (r363121)
@@ -864,6 +864,6 @@ static device_method_t mvebu_gpio_methods[] = {
static devclass_t mvebu_gpio_devclass;
static DEFINE_CLASS_0(gpio, mvebu_gpio_driver, mvebu_gpio_methods,
sizeof(struct mvebu_gpio_softc));
-EARLY_DRIVER_MODULE(gpio, simplebus, mvebu_gpio_driver,
+EARLY_DRIVER_MODULE(mvebu_gpio, simplebus, mvebu_gpio_driver,
mvebu_gpio_devclass, NULL, NULL,
BUS_PASS_TIMER + BUS_PASS_ORDER_LAST);
More information about the svn-src-head
mailing list