aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/gpio/gpioths.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/gpio/gpioths.c')
-rw-r--r--sys/dev/gpio/gpioths.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/gpio/gpioths.c b/sys/dev/gpio/gpioths.c
index c08d772ddb9b..97831db881ae 100644
--- a/sys/dev/gpio/gpioths.c
+++ b/sys/dev/gpio/gpioths.c
@@ -72,8 +72,6 @@ static struct ofw_compat_data compat_data[] = {
{"dht11", true},
{NULL, false}
};
-OFWBUS_PNP_INFO(compat_data);
-SIMPLEBUS_PNP_INFO(compat_data);
#endif /* FDT */
#define PIN_IDX 0 /* Use the first/only configured pin. */
@@ -411,7 +409,11 @@ DEFINE_CLASS_0(gpioths, gpioths_driver, gpioths_methods, sizeof(struct gpioths_s
#ifdef FDT
DRIVER_MODULE(gpioths, simplebus, gpioths_driver, gpioths_devclass, 0, 0);
+SIMPLEBUS_PNP_INFO(compat_data);
#endif
DRIVER_MODULE(gpioths, gpiobus, gpioths_driver, gpioths_devclass, 0, 0);
+#ifdef FDT
+OFWBUS_PNP_INFO(compat_data);
+#endif
MODULE_DEPEND(gpioths, gpiobus, 1, 1, 1);