gpio: max7301: use devm_kzalloc()
authorJingoo Han <jg1.han@samsung.com>
Fri, 15 Mar 2013 09:15:06 +0000 (18:15 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 27 Mar 2013 15:05:11 +0000 (16:05 +0100)
commit4cb06cd58c23f6520dc00d67e62267ef17d69206
tree5b572d02cab165d9d256383a10a1572124a6dda2
parentc3fe2bf4916e85fabc66690c8784bbce3ef4d2b4
gpio: max7301: use devm_kzalloc()

Use devm_kzalloc() to make cleanup paths simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-max7301.c