mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
gpioled: allow the driver to be disabled via fdt
(cherry picked from commit 832503063e)
This commit is contained in:
parent
8f57430de1
commit
7785ea3373
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue