gpioled: allow the driver to be disabled via fdt

(cherry picked from commit 832503063e)
This commit is contained in:
Andriy Gapon 2020-09-25 10:32:47 +03:00
parent 8f57430de1
commit 7785ea3373

View file

@ -144,6 +144,8 @@ gpioleds_detach_led(struct gpioled *led)
static int
gpioled_probe(device_t dev)
{
if (!ofw_bus_status_okay(dev))
return (ENXIO);
if (!ofw_bus_is_compatible(dev, "gpio-leds"))
return (ENXIO);