]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tilcdc: panel: Use devm_kzalloc to simplify the error path
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Tue, 2 Sep 2014 12:51:19 +0000 (09:51 -0300)
committerDave Airlie <airlied@redhat.com>
Wed, 17 Sep 2014 00:55:05 +0000 (10:55 +1000)
commitc11cccd5c191d683d414e9a25c5adf3ebef26fa0
treeecdecf706d131724b6154bda2800b6f01b549f87
parent18189e1b73fea93244d461dcac1c057a5469d7b9
drm/tilcdc: panel: Use devm_kzalloc to simplify the error path

Using the managed variant to allocate the resource makes the code simpler
and less error-prone.

Tested-by: Darren Etheridge <detheridge@ti.com>
Tested-by: Johannes Pointner <johannes.pointner@br-automation.com>
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/tilcdc/tilcdc_panel.c