regulator: max8997: Test pdata by NULL checking instead of IS_ERR_OR_NULL
commita2f07305e53545dceb08724ed86345c198b2a91a
authorAxel Lin <axel.lin@ingics.com>
Sat, 13 Apr 2013 14:05:43 +0000 (13 22:05 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 15 Apr 2013 16:21:18 +0000 (15 17:21 +0100)
tree893c2a319f44091bd12e0d57df59df502083abc6
parent41ef2d5678d83af030125550329b6ae8b74618fa
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