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)
commit971645d1fd734b8098a5113d61ab9ea93ce83921
treeecdecf706d131724b6154bda2800b6f01b549f87
parente3a9b04621681d0f07bc8e9935684e6400edef7c
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