max17042_battery: Fix power supply and irq registration ordering
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>
Fri, 4 May 2012 21:38:37 +0000 (03:08 +0530)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Sat, 5 May 2012 06:42:56 +0000 (23:42 -0700)
commit243e3527ffbda96434429e618324f80ca0d98902
tree2605526fe5555735bbf9e3009b671064a4b38fdc
parent0d4ed4e27a4cb180af395fa3d7aa98d79f3d3015
max17042_battery: Fix power supply and irq registration ordering

IRQ registration should happen only after power supply object usable.
This patch fixes the ordering of power supply and irq registration
calls.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/max17042_battery.c