Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: regulator: fix getting gpio for level control
Swap the 2 calls to find gpio property in "regulator-gpio" compiatble node. Obviously the first call expects to get the GPIO resource while the second check that the node does not define 2 or more GPIOs to control the regulator level as the implementation only supports one, as described in the inline comment. Fixes: f164f0f ("drivers: regulator: GPIO controlled regulator") Signed-off-by: Etienne Carriere <[email protected]>
- Loading branch information