]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: max8997: Test pdata by NULL checking instead of IS_ERR_OR_NULL
authorAxel Lin <axel.lin@ingics.com>
Sat, 13 Apr 2013 14:05:43 +0000 (22:05 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 15 Apr 2013 16:21:18 +0000 (17:21 +0100)
commitdbab2103e4efa6b860c97c4dffb64bfb31b03828
tree893c2a319f44091bd12e0d57df59df502083abc6
parent7cdcc37425915a9c739f888ca652ee70c4255cc7
regulator: max8997: Test pdata by NULL checking instead of IS_ERR_OR_NULL

pdata is either a valid pointer or NULL, use NULL checking rather than
IS_ERR_OR_NULL macro.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max8997.c