Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142648445
D34571.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
432 B
Referenced Files
None
Subscribers
None
D34571.id.diff
View Options
diff --git a/sys/dev/gpio/gpiopower.c b/sys/dev/gpio/gpiopower.c
--- a/sys/dev/gpio/gpiopower.c
+++ b/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
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 22, 8:38 PM (14 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27862339
Default Alt Text
D34571.id.diff (432 B)
Attached To
Mode
D34571: gpiopower: Fix failure case for attach
Attached
Detach File
Event Timeline
Log In to Comment