HomeFreeBSD

gpiopower: Fix failure case for attach

Description

gpiopower: Fix failure case for attach

Summary:
We really should be checking the return value of
ofw_gpiobus_parse_gpios_impl, not the value of sc_pins, which isn't
changed on failure.

Reported by: alfredo@

Reviewers: PowerPC, alfredo

Reviewed By: PowerPC, alfredo

Subscribers: imp, loos

Differential Revision: https://reviews.freebsd.org/D34571

Details

Provenance
jhibbitsAuthored on Mar 15 2022, 6:40 PM
Reviewer
PowerPC
Differential Revision
D34571: gpiopower: Fix failure case for attach
Parents
rG5ac766ab8ec2: OpenSSL: Merge OpenSSL 1.1.1n
Branches
Unknown
Tags
Unknown