From: Geert Uytterhoeven Date: Mon, 9 Sep 2013 11:49:26 +0000 (+0200) Subject: regulator: da9063: Fix PTR_ERR/ERR_PTR mismatch X-Git-Tag: v3.12-rc4~36^2~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8cb204c675e05105ab2c93c73c57607e09d6b41;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed