From: Devendra Naga Date: Sun, 29 Jul 2012 17:46:55 +0000 (+0545) Subject: lp8727_charger: Unregister power supply at error path of lp8727_register_psy X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~5^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6297b5e54b5511d4e72e8d5fc3b139650adc74d8;p=pandora-kernel.git lp8727_charger: Unregister power supply at error path of lp8727_register_psy if usb power supply registration fails, we wont unregister the ac power supply if battery power supply registration fails, we wont unregister the usb, and ac supply, take care of those things and also no need of goto -err_mem: at the fail case of kzalloc simply can have return -ENOMEM Signed-off-by: Devendra Naga Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed