diff options
author | Javier Martinez Canillas <[email protected]> | 2015-09-21 14:26:54 +0200 |
---|---|---|
committer | Lee Jones <[email protected]> | 2015-10-01 16:31:42 +0100 |
commit | 1b52e50f2a402a266f1ba2281f0a57e87637a047 (patch) | |
tree | 1a944e6f9d25779dd34684e58a13208ff3fd20ca /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 47b91923ea41288751e83a5b080576085a831333 (diff) |
mfd: max77843: Fix max77843_chg_init() return on error
If i2c_new_dummy() fails in max77843_chg_init(), an PTR_ERR(NULL) is
returned which is 0. So the function was wrongly returning a success
value instead of an error code.
Cc: [email protected] # 4.1
Fixes: c7f585fe46d8 ("mfd: max77843: Add max77843 MFD driver core driver")
Signed-off-by: Javier Martinez Canillas <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions