[PATCH 2/8] lp8727_charger: cleanup _probe() and _remove()

2012-08-30 Thread Kim, Milo
(a) register the power supply prior to creating irq handler After reordering the sequence, the interrupt issue can be gone when the power supply registration gets failed (b) remove unnecessary goto statements (c) unregister the power supply after releasing irq resources in reverse

[PATCH 2/8] lp8727_charger: cleanup _probe() and _remove()

2012-08-30 Thread Kim, Milo
(a) register the power supply prior to creating irq handler After reordering the sequence, the interrupt issue can be gone when the power supply registration gets failed (b) remove unnecessary goto statements (c) unregister the power supply after releasing irq resources in reverse