Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Feb 2018 23:01:33 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329536 - head/sys/arm/freescale/imx
Message-ID:  <201802182301.w1IN1Xp4042805@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Sun Feb 18 23:01:33 2018
New Revision: 329536
URL: https://svnweb.freebsd.org/changeset/base/329536

Log:
  Add the MODULE_DEPEND()s needed so that the kernel linker can resolve all
  the symbols at load time when iicbus is not compiled into the kernel.

Modified:
  head/sys/arm/freescale/imx/imx_i2c.c

Modified: head/sys/arm/freescale/imx/imx_i2c.c
==============================================================================
--- head/sys/arm/freescale/imx/imx_i2c.c	Sun Feb 18 22:57:04 2018	(r329535)
+++ head/sys/arm/freescale/imx/imx_i2c.c	Sun Feb 18 23:01:33 2018	(r329536)
@@ -192,6 +192,8 @@ static devclass_t  i2c_devclass;
 
 DRIVER_MODULE(imx_i2c, simplebus, i2c_driver, i2c_devclass, 0, 0);
 DRIVER_MODULE(ofw_iicbus, imx_i2c, ofw_iicbus_driver, ofw_iicbus_devclass, 0, 0);
+MODULE_DEPEND(imx_i2c, iicbus, 1, 1, 1);
+MODULE_DEPEND(imx_i2c, ofw_iicbus, 1, 1, 1);
 
 static phandle_t
 i2c_get_node(device_t bus, device_t dev)



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