Skip to content
Commit f863440d authored by Russell King's avatar Russell King
Browse files

ARM: cleanup: regulator_get() error handling



regulator_get() does not return NULL as an error value.  Even when it
does return an error, the code as written falls out the error path
while returning zero (indicating no failure.)  Fix this, and use the
more correct IS_ERR() macro to check for errors.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 86287958
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment