diff options
| author | Andrew Thompson <thompsa@FreeBSD.org> | 2010-11-08 03:08:01 +0000 |
|---|---|---|
| committer | Andrew Thompson <thompsa@FreeBSD.org> | 2010-11-08 03:08:01 +0000 |
| commit | cac6df751b207debda23d8f07e9a2e2e1d72dc2d (patch) | |
| tree | 6b4ee52771f44aa851cd2230bc7a91cdde1a3efd /sys/dev/gpio | |
| parent | 8194413b8d575b603cc1c0de2943c9a60f37d712 (diff) | |
Notes
Diffstat (limited to 'sys/dev/gpio')
| -rw-r--r-- | sys/dev/gpio/gpioled.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/gpio/gpioled.c b/sys/dev/gpio/gpioled.c index d96b8b77450c..a03c172d106f 100644 --- a/sys/dev/gpio/gpioled.c +++ b/sys/dev/gpio/gpioled.c @@ -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)); |
