[PATCH 2/9] extcon: Add devm_extcon_dev_allocate/free to manage the resource of extcon device

2014-04-21 Thread Chanwoo Choi
This patch add device managed devm_extcon_dev_{allocate,free} to automatically free the memory of extcon_dev structure without handling free operation. Signed-off-by: Chanwoo Choi --- drivers/extcon/extcon-class.c | 57 +++ include/linux/extcon.h|

[PATCH 2/9] extcon: Add devm_extcon_dev_allocate/free to manage the resource of extcon device

2014-04-21 Thread Chanwoo Choi
This patch add device managed devm_extcon_dev_{allocate,free} to automatically free the memory of extcon_dev structure without handling free operation. Signed-off-by: Chanwoo Choi cw00.c...@samsung.com --- drivers/extcon/extcon-class.c | 57 +++