Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Apr 2018 23:49:36 +0000 (UTC)
From:      Marcin Wojtas <mw@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r331966 - in head/sys: arm/mv dev/ahci
Message-ID:  <201804032349.w33NnaBD043897@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mw
Date: Tue Apr  3 23:49:35 2018
New Revision: 331966
URL: https://svnweb.freebsd.org/changeset/base/331966

Log:
  Fix kernel modules names for Marvell armv7
  
  Two modules with the same name cannot be loaded, so Marvell specific drivers
  cannot have the same name as the generic drivers.
  Files with the same name, even in different folders overlaps their .o files,
  so in order to prepare for supporting Marvell platforms in GENERIC armv7
  config, modify conflicting names.
  
  Submitted by: Rafal Kozik <rk@semihalf.com>
  Obtained from: Semihalf
  Sponsored by: Stormshield
  Differential Revision: https://reviews.freebsd.org/D14743

Modified:
  head/sys/arm/mv/timer.c
  head/sys/dev/ahci/ahci_mv_fdt.c

Modified: head/sys/arm/mv/timer.c
==============================================================================
--- head/sys/arm/mv/timer.c	Tue Apr  3 23:29:34 2018	(r331965)
+++ head/sys/arm/mv/timer.c	Tue Apr  3 23:49:35 2018	(r331966)
@@ -289,7 +289,7 @@ static driver_t mv_timer_driver = {
 
 static devclass_t mv_timer_devclass;
 
-DRIVER_MODULE(timer, simplebus, mv_timer_driver, mv_timer_devclass, 0, 0);
+DRIVER_MODULE(timer_mv, simplebus, mv_timer_driver, mv_timer_devclass, 0, 0);
 
 static unsigned
 mv_timer_get_timecount(struct timecounter *tc)

Modified: head/sys/dev/ahci/ahci_mv_fdt.c
==============================================================================
--- head/sys/dev/ahci/ahci_mv_fdt.c	Tue Apr  3 23:29:34 2018	(r331965)
+++ head/sys/dev/ahci/ahci_mv_fdt.c	Tue Apr  3 23:49:35 2018	(r331966)
@@ -151,5 +151,5 @@ static driver_t ahci_driver = {
 	sizeof(struct ahci_controller)
 };
 
-DRIVER_MODULE(ahci, simplebus, ahci_driver, ahci_devclass, NULL, NULL);
-DRIVER_MODULE(ahci, ofwbus, ahci_driver, ahci_devclass, NULL, NULL);
+DRIVER_MODULE(ahci_mv, simplebus, ahci_driver, ahci_devclass, NULL, NULL);
+DRIVER_MODULE(ahci_mv, ofwbus, ahci_driver, ahci_devclass, NULL, NULL);



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