regulator: as3711: Fix checking if no platform initialization data
authorAxel Lin <axel.lin@ingics.com>
Wed, 13 Feb 2013 01:34:48 +0000 (09:34 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 13 Feb 2013 12:56:51 +0000 (12:56 +0000)
commit09ca50d2ade7ed6b3b2653b771774cf360c3d56c
treee0a6b7ad1f118765934edd72173db74aa2304b84
parent836dc9e3fbbab0c30aa6e664417225f5c1fb1c39
regulator: as3711: Fix checking if no platform initialization data

To skip registering regulator if no platform initialization data,
we should check reg_data rather than ri->desc.name.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/as3711-regulator.c