extcon: max77693: Use devm_kzalloc
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 20 Nov 2012 06:46:50 +0000 (15:46 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 21 Nov 2012 11:01:17 +0000 (20:01 +0900)
commitf4bb5cb54eb97fee9b4e076df8df68b91861b934
tree77c7ce016ce2a5673329813665165da2cb55b37b
parent0b672e9b21942fdfa63519fb66df4a40d6fafe35
extcon: max77693: Use devm_kzalloc

devm_kzalloc() is a device managed function. It makes error handling
and cleanup code a bit simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
drivers/extcon/extcon-max77693.c