Date: Sun, 15 May 2016 14:47:50 +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: r299854 - head/sys/arm/nvidia Message-ID: <201605151447.u4FElpqr066462@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mmel Date: Sun May 15 14:47:50 2016 New Revision: 299854 URL: https://svnweb.freebsd.org/changeset/base/299854 Log: TEGRA: Don't use common name 'gpio' for tegra specific GPIO driver. Using commn name for different drivers breaks generic kernel creation. Modified: head/sys/arm/nvidia/tegra_gpio.c Modified: head/sys/arm/nvidia/tegra_gpio.c ============================================================================== --- head/sys/arm/nvidia/tegra_gpio.c Sun May 15 14:43:52 2016 (r299853) +++ head/sys/arm/nvidia/tegra_gpio.c Sun May 15 14:47:50 2016 (r299854) @@ -883,7 +883,7 @@ static device_method_t tegra_gpio_method }; static driver_t tegra_gpio_driver = { - "gpio", + "tegra_gpio", tegra_gpio_methods, sizeof(struct tegra_gpio_softc), }; @@ -891,3 +891,8 @@ static devclass_t tegra_gpio_devclass; EARLY_DRIVER_MODULE(tegra_gpio, simplebus, tegra_gpio_driver, tegra_gpio_devclass, 0, 0, 70); + +extern devclass_t ofwgpiobus_devclass; +extern driver_t ofw_gpiobus_driver; +EARLY_DRIVER_MODULE(ofw_gpiobus, tegra_gpio, ofw_gpiobus_driver, +ofwgpiobus_devclass, 0, 0, BUS_PASS_BUS);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605151447.u4FElpqr066462>