Page MenuHomeFreeBSD

D34571.id103894.diff
No OneTemporary

D34571.id103894.diff

Index: sys/dev/gpio/gpiopower.c
===================================================================
--- sys/dev/gpio/gpiopower.c
+++ sys/dev/gpio/gpiopower.c
@@ -74,8 +74,7 @@
if ((node = ofw_bus_get_node(dev)) == -1)
return (ENXIO);
- ofw_gpiobus_parse_gpios(dev, "gpios", &sc->sc_pin);
- if (sc->sc_pin == NULL) {
+ if (ofw_gpiobus_parse_gpios(dev, "gpios", &sc->sc_pin) != 0) {
device_printf(dev, "failed to map GPIO pin\n");
return (ENXIO);
}

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 16, 7:59 PM (19 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15828727
Default Alt Text
D34571.id103894.diff (462 B)

Event Timeline