[media] mem2mem_testdev: Use devm_kzalloc() in probe
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 24 Sep 2012 05:17:48 +0000 (02:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 6 Oct 2012 14:51:54 +0000 (11:51 -0300)
commit38a7996cbb26ddd6b595e2fafa9742aefcb2f115
treedea7777f2c8c2f69d54ceaea098ac79b41f31c0e
parent26fdcf0980225f8b3d5fa258d9f41433cb0664ed
[media] mem2mem_testdev: Use devm_kzalloc() in probe

devm_kzalloc() makes error handling and cleanup simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/mem2mem_testdev.c