Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jul 2020 07:27:21 +0000 (UTC)
From:      Michal Meloun <mmel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363121 - in head/sys/arm: broadcom/bcm2835 mv
Message-ID:  <202007120727.06C7RLU3036348@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007120727.06C7RLU3036348>