gpio:Fix error handling in the function max732x_probe
Quoted 7 lines · Nicholas Krause
This fixes error handling in the function
max732x_probeby checking if the calls to the functionmax732x_readbfail by returning a error code. If so we must immediately return to the caller of the functionmax732x_probewith the error code to signal a non recoverable has occurred when calling this function and the caller must handle it.Signed-off-by Nicholas Krause <[email protected]>
Stripped and rewrote the commit message a bit and applied.
Yours,
Linus Walleij