mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Set the pin to output on attach, we can't assume it already is.
Reviewed by: gonzo
This commit is contained in:
parent
8194413b8d
commit
cac6df751b
1 changed files with 3 additions and 0 deletions
|
|
@ -103,6 +103,9 @@ gpioled_attach(device_t dev)
|
|||
device_get_unit(dev), "name", &name))
|
||||
name = NULL;
|
||||
|
||||
GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, GPIOLED_PIN,
|
||||
GPIO_PIN_OUTPUT);
|
||||
|
||||
sc->sc_leddev = led_create(gpioled_control, sc, name ? name :
|
||||
device_get_nameunit(dev));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue