extcon: Add resource-managed extcon register function
authorSangjung Woo <sangjung.woo@samsung.com>
Mon, 21 Apr 2014 10:10:08 +0000 (19:10 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 24 Apr 2014 10:36:55 +0000 (19:36 +0900)
Add resource-managed extcon device register function for convenience.
For example, if a extcon device is attached with new
devm_extcon_dev_register(), that extcon device is automatically
unregistered on driver detach.

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
[Fix bug about devm_extcon_dev_match/release() and code clean by Chanwoo Choi]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-class.c
include/linux/extcon.h

Simple merge
Simple merge