smb347_charger: Cleanup power supply registration code in probe
This patch checks if the usb or mains charging is enabled by the platform before registering with the power supply class. Signed-off-by: NRamakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
Showing
想要评论请 注册 或 登录