From: Sangjung Woo Date: Mon, 21 Apr 2014 10:10:13 +0000 (+0900) Subject: extcon: max8997: Use devm_extcon_dev_register() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~38^2~21^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2923803d4f69fd8e4ed85786b8888986b2682154;p=pandora-kernel.git extcon: max8997: Use devm_extcon_dev_register() 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: Sangjung Woo Reviewed-by: Krzysztof Kozlowski Signed-off-by: Chanwoo Choi --- Reading git-diff-tree failed