[media] staging: dt3155v4l: Switch to using managed resource with devm_
authorKiran Padwal <kiran.padwal@smartplayin.com>
Fri, 13 Feb 2015 08:52:10 +0000 (05:52 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Mar 2015 17:45:57 +0000 (14:45 -0300)
commit92afdc1bf1f2100d6c634a131421cd112bad5a48
treeff6e18bf6455564bf4d85d67b2ae2b227d4435b8
parent50d8e46faf2a6db86f2281425780ff55030fd6c5
[media] staging: dt3155v4l: Switch to using managed resource with devm_

This patch uses managed resource APIs to allocate memory
in order to simplify the driver unload or failure cases

Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/staging/media/dt3155v4l/dt3155v4l.c