]> Pileus Git - ~andy/linux/commit
extcon: max8997: Use devm_kzalloc
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 20 Nov 2012 06:46:47 +0000 (15:46 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 21 Nov 2012 11:01:16 +0000 (20:01 +0900)
commit0b672e9b21942fdfa63519fb66df4a40d6fafe35
treeed710976a10f890883e1ae2f4d3ed6afdf55f4a9
parent2ca36f4afd0b0c3b9f99e1c03bbfafeb39516cf6
extcon: max8997: 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-max8997.c