extcon: max77693: Use devm_extcon_dev_allocate for extcon_dev
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 21 Apr 2014 11:39:53 +0000 (20:39 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 29 Apr 2014 00:50:07 +0000 (09:50 +0900)
commit577bef11048c9dc7ce5f9f18e89bf5305be49554
tree3f15bf1469632922dcbc5cc85dea8d6b97034a66
parent22f9afb95ba67eb6839e2b5499f5f42a767b1c18
extcon: max77693: Use devm_extcon_dev_allocate for extcon_dev

This patch use devm_extcon_dev_allocate() to simplify the memory control
of extcon device.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
drivers/extcon/extcon-max77693.c