leds-88pm860x: use devm_kzalloc function
authorDevendra Naga <devendra.aaru@gmail.com>
Mon, 2 Jul 2012 10:15:43 +0000 (18:15 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Mon, 23 Jul 2012 23:52:35 +0000 (07:52 +0800)
commitb523cfe61b097a45f4e919e8c3b6da239962b3e9
tree3224236922fc03822286579ce7fcf665d44e7d08
parent5391dd0a9d084633e20e6583cfed233581c452f9
leds-88pm860x: use devm_kzalloc function

Using devm_kzalloc will remove all the error checks and the frees are automatically done at the driver unload side.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
drivers/leds/leds-88pm860x.c