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: NAxel Lin <axel.lin@ingics.com> Acked-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Showing
想要评论请 注册 或 登录