[PATCH 02/22] lp8727_charger: cleanup _probe() and _remove()

2012-08-31 Thread Kim, Milo
If the lp8727_register_psy() gets failed, registered interrupt handler should be freed, but this is not complete solution. It has still problem. Assume that the IRQ occurs while unregistering power supply devices. Then the ISR will access to freed IRQ. From Anton's opinion, it can be

[PATCH 02/22] lp8727_charger: cleanup _probe() and _remove()

2012-08-31 Thread Kim, Milo
If the lp8727_register_psy() gets failed, registered interrupt handler should be freed, but this is not complete solution. It has still problem. Assume that the IRQ occurs while unregistering power supply devices. Then the ISR will access to freed IRQ. From Anton's opinion, it can be