diff options
author | 2017-08-30 17:03:58 +0300 | |
---|---|---|
committer | 2017-08-30 16:05:46 +0100 | |
commit | b6615659827839f3031c6bd4c1599c3c705778ac (patch) | |
tree | 2f6d870b0cac9f3602d6634e097d22d0cc764883 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux v4.13-rc1 (diff) | |
download | wireguard-linux-b6615659827839f3031c6bd4c1599c3c705778ac.tar.xz wireguard-linux-b6615659827839f3031c6bd4c1599c3c705778ac.zip |
regulator: da9063: Return an error code on probe failure
If "regl_pdata->n_regulators == 0" is true then we accidentally return
PTR_ERR(<some_valid_pointer>) instead of an error code. I've changed it
to return -ENODEV instead.
Fixes: 69ca3e58d178 ("regulator: da9063: Add Dialog DA9063 voltage regulators support.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions