]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: dbx500-prcmu: Remove unused function dbx500_regulator_testcase()
authorLee Jones <lee.jones@linaro.org>
Thu, 25 Jun 2020 16:36:08 +0000 (17:36 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 25 Jun 2020 19:11:12 +0000 (20:11 +0100)
commit93b907d3048a86189777eaf98ebacd354f13238e
tree18c6f44fc1fb83dbc2178cca4a0968155b334f84
parent8be2aed0e2c7ff27ea3c0dfae2987a9cfcfcdd81
regulator: dbx500-prcmu: Remove unused function dbx500_regulator_testcase()

There isn't any code present within the current kernel to
override this 'weak' function.  Besides returning '0', which
is never checked anyway, the whole function appears to be
superfluous.

Consequently fixes W=1 warning:

 drivers/regulator/dbx500-prcmu.c:113:27: warning: no previous prototype for ‘dbx500_regulator_testcase’ [-Wmissing-prototypes]
 113 | int __attribute__((weak)) dbx500_regulator_testcase(
 | ^~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20200625163614.4001403-5-lee.jones@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/dbx500-prcmu.c