]> git.karo-electronics.de Git - linux-beck.git/commit
smb347_charger: Cleanup power supply registration code in probe
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>
Thu, 19 Apr 2012 04:30:18 +0000 (10:00 +0530)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Sat, 5 May 2012 12:29:00 +0000 (05:29 -0700)
commite6fe3597fa17dcd7ee82a5198beadb19a457a478
tree8f62622cd7be07ab070cac1e37292e2bbeed60ea
parent2aac3de19b72608f474c90034185c2be4908728f
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: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/smb347-charger.c