Re: [PATCH 8/8] extcon: arizona: Use devm_extcon_dev_register()

2014-04-16 Thread Sangjung
To Seung-Woo. On 04/16/2014 07:44 PM, Seung-Woo Kim wrote: > Hi, > > On 2014년 04월 16일 19:27, Sangjung Woo wrote: >> 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 functio

Re: [PATCH 8/8] extcon: arizona: Use devm_extcon_dev_register()

2014-04-16 Thread Seung-Woo Kim
Hi, On 2014년 04월 16일 19:27, Sangjung Woo wrote: > 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

[PATCH 8/8] extcon: arizona: Use devm_extcon_dev_register()

2014-04-16 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: Sangj