extcon: Add devm_extcon_dev_allocate/free to manage the resource of extcon device
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 24 Apr 2014 11:12:15 +0000 (20:12 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 29 Apr 2014 00:45:56 +0000 (09:45 +0900)
commit739ba1bfdb15e773999aafddbd6c59b5737797a0
tree2c8ad1e36b316e894aa53eb5861cef2546bf3b91
parenta9af65223b41cec60cd44fa95a93d10149deb143
extcon: Add devm_extcon_dev_allocate/free to manage the resource of extcon device

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.choi@samsung.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
drivers/extcon/extcon-class.c
include/linux/extcon.h