Date: Sun, 15 May 2016 15:14:46 +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: r299856 - head/sys/arm/nvidia Message-ID: <201605151514.u4FFEkFg075899@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mmel Date: Sun May 15 15:14:46 2016 New Revision: 299856 URL: https://svnweb.freebsd.org/changeset/base/299856 Log: TEGRA: Don't use common name 'iicb' for tegra specific IIC driver. Using commn name for different drivers breaks generic kernel creation. Modified: head/sys/arm/nvidia/tegra_i2c.c Modified: head/sys/arm/nvidia/tegra_i2c.c ============================================================================== --- head/sys/arm/nvidia/tegra_i2c.c Sun May 15 15:13:56 2016 (r299855) +++ head/sys/arm/nvidia/tegra_i2c.c Sun May 15 15:14:46 2016 (r299856) @@ -800,5 +800,9 @@ static device_method_t tegra_i2c_methods DEFINE_CLASS_0(iichb, tegra_i2c_driver, tegra_i2c_methods, sizeof(struct tegra_i2c_softc)); static devclass_t tegra_i2c_devclass; -EARLY_DRIVER_MODULE(iichb, simplebus, tegra_i2c_driver, tegra_i2c_devclass, 0, - 0, 73); +EARLY_DRIVER_MODULE(tegra_iic, simplebus, tegra_i2c_driver, tegra_i2c_devclass, + 0, 0, 73); +extern devclass_t ofwiicbus_devclass; +extern driver_t ofw_iicbus_driver; +EARLY_DRIVER_MODULE(ofw_iicbus, tegra_iic, ofw_iicbus_driver, + ofwiicbus_devclass, 0, 0, BUS_PASS_BUS);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605151514.u4FFEkFg075899>