diff options
author | 2013-09-09 13:49:26 +0200 | |
---|---|---|
committer | 2013-09-10 18:11:41 +0100 | |
commit | e8cb204c675e05105ab2c93c73c57607e09d6b41 (patch) | |
tree | 3482daeec75be32cfab73c011550f5dfe594f125 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge remote-tracking branch 'regulator/topic/tps65912' into regulator-next (diff) | |
download | linux-dev-e8cb204c675e05105ab2c93c73c57607e09d6b41.tar.xz linux-dev-e8cb204c675e05105ab2c93c73c57607e09d6b41.zip |
regulator: da9063: Fix PTR_ERR/ERR_PTR mismatch
If CONFIG_OF=n:
drivers/regulator/da9063-regulator.c: In function ‘da9063_parse_regulators_dt’:
drivers/regulator/da9063-regulator.c:712: warning: passing argument 1 of ‘PTR_ERR’ makes pointer from integer without a cast
drivers/regulator/da9063-regulator.c:712: warning: return makes pointer from integer without a cast
Use ERR_PTR() to encode an error code in a pointer.
PTR_ERR() is meant to decode an error code from a pointer.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions