]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
pda_power: only register available psu
authorDmitry Baryshkov <dbaryshkov@gmail.com>
Mon, 7 Jan 2008 01:12:39 +0000 (04:12 +0300)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 1 Feb 2008 23:42:59 +0000 (02:42 +0300)
commit9ef45106261e802f9d80bf0bc652124b42b1f344
tree6cdf673b05a9c43ab73a0fac462ce8e2d8272346
parent839dc9f105c0d856f9a0be48fb3bd0982ff5df5b
pda_power: only register available psu

Currently pda-power adds both ac and usb power supply units.
This patch fixes it so that psu are added only if they are enabled.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Anton Vorontsov <cbou@mail.ru>
drivers/power/pda_power.c