Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
power: supply: ltc3651-charger: fix some error codes in probe
There are several cut and past bugs here. ltc3651_charger->charger is NULL at this point, so we return success instead of the intended error codes. Fixes: c94d4ed ("power: supply: Add ltc3651-charger driver") Signed-off-by: Dan Carpenter <[email protected]> [Wei Yongjun found the same issue independently] Signed-off-by: Wei Yongjun <[email protected]> Acked-by: Mike Looijmans <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
- Loading branch information