Author: thompsa
Date: Mon Nov 8 03:08:01 2010
New Revision: 214971
URL: http://svn.freebsd.org/changeset/base/214971
Log:
Set the pin to output on attach, we can't assume it already is.
Reviewed by: gonzo
Modified:
head/sys/dev/gpio/gpioled.c
Modified: head/sys/dev/gpio/gpioled.c
==============================================================================
--- head/sys/dev/gpio/gpioled.c Mon Nov 8 02:47:29 2010 (r214970)
+++ head/sys/dev/gpio/gpioled.c Mon Nov 8 03:08:01 2010 (r214971)
@@ -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));
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"