[PATCHv4 7/8] extcon: palmas: Use devm_extcon_dev_register()

2014-04-21 Thread Sangjung Woo
Use the resource-managed extcon device register function (i.e. devm_extcon_dev_register()) instead of extcon_dev_register(). If extcon device is attached with this function, that extcon device is automatically unregistered on driver detach. That reduces tiresome managing code. Signed-off-by:

[PATCHv4 7/8] extcon: palmas: Use devm_extcon_dev_register()

2014-04-21 Thread Sangjung Woo
Use the resource-managed extcon device register function (i.e. devm_extcon_dev_register()) instead of extcon_dev_register(). If extcon device is attached with this function, that extcon device is automatically unregistered on driver detach. That reduces tiresome managing code. Signed-off-by: