summaryrefslogtreecommitdiffstats
path: root/sys/arm/xscale
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2015-01-29 18:08:50 +0000
committerloos <loos@FreeBSD.org>2015-01-29 18:08:50 +0000
commit2f60094c0cc6a13580666260fdf498d59fb83a47 (patch)
treea6c20ff5b6063e584bf3c5fc2dd1381e6900d2d1 /sys/arm/xscale
parent38e3f37854e16dc22a0b7780c4e58a0787d8f3b6 (diff)
downloadFreeBSD-src-2f60094c0cc6a13580666260fdf498d59fb83a47.zip
FreeBSD-src-2f60094c0cc6a13580666260fdf498d59fb83a47.tar.gz
Rename the avila, cambria and zynq GPIO driver names to match the expected
string. With this change it is not necessary redeclare the driver relations with gpiobus and gpioc. This also prevents redundant declarations when gpiobusvar.h is included (which is going to happen soon).
Diffstat (limited to 'sys/arm/xscale')
-rw-r--r--sys/arm/xscale/ixp425/avila_gpio.c6
-rw-r--r--sys/arm/xscale/ixp425/cambria_gpio.c6
2 files changed, 2 insertions, 10 deletions
diff --git a/sys/arm/xscale/ixp425/avila_gpio.c b/sys/arm/xscale/ixp425/avila_gpio.c
index 4a2d1e9..6d92e08 100644
--- a/sys/arm/xscale/ixp425/avila_gpio.c
+++ b/sys/arm/xscale/ixp425/avila_gpio.c
@@ -344,15 +344,11 @@ static device_method_t gpio_avila_methods[] = {
};
static driver_t gpio_avila_driver = {
- "gpio_avila",
+ "gpio",
gpio_avila_methods,
sizeof(struct avila_gpio_softc),
};
static devclass_t gpio_avila_devclass;
-extern devclass_t gpiobus_devclass, gpioc_devclass;
-extern driver_t gpiobus_driver, gpioc_driver;
DRIVER_MODULE(gpio_avila, ixp, gpio_avila_driver, gpio_avila_devclass, 0, 0);
-DRIVER_MODULE(gpiobus, gpio_avila, gpiobus_driver, gpiobus_devclass, 0, 0);
-DRIVER_MODULE(gpioc, gpio_avila, gpioc_driver, gpioc_devclass, 0, 0);
MODULE_VERSION(gpio_avila, 1);
diff --git a/sys/arm/xscale/ixp425/cambria_gpio.c b/sys/arm/xscale/ixp425/cambria_gpio.c
index 7a773db..16c3489 100644
--- a/sys/arm/xscale/ixp425/cambria_gpio.c
+++ b/sys/arm/xscale/ixp425/cambria_gpio.c
@@ -476,16 +476,12 @@ static device_method_t cambria_gpio_methods[] = {
};
static driver_t cambria_gpio_driver = {
- "gpio_cambria",
+ "gpio",
cambria_gpio_methods,
sizeof(struct cambria_gpio_softc),
};
static devclass_t cambria_gpio_devclass;
-extern devclass_t gpiobus_devclass, gpioc_devclass;
-extern driver_t gpiobus_driver, gpioc_driver;
DRIVER_MODULE(gpio_cambria, iicbus, cambria_gpio_driver, cambria_gpio_devclass, 0, 0);
-DRIVER_MODULE(gpiobus, gpio_cambria, gpiobus_driver, gpiobus_devclass, 0, 0);
-DRIVER_MODULE(gpioc, gpio_cambria, gpioc_driver, gpioc_devclass, 0, 0);
MODULE_VERSION(gpio_cambria, 1);
MODULE_DEPEND(gpio_cambria, iicbus, 1, 1, 1);
OpenPOWER on IntegriCloud