drm/cirrus: fix leaky driver load error handling
authorZach Reizner <zachr@google.com>
Tue, 18 Nov 2014 01:19:41 +0000 (17:19 -0800)
committerDave Airlie <airlied@redhat.com>
Thu, 20 Nov 2014 01:41:26 +0000 (11:41 +1000)
commita7ca52e108e549669940b11779bb491a931f8c65
tree290248f5e52ba80d17e82b0bf22103e79b041ea6
parentb0fcfc899513a4d4729914b6872ab0564c0f523a
drm/cirrus: fix leaky driver load error handling

Before this patch, cirrus_device_init could have failed while
cirrus_mm_init succeeded and the driver would have reported overall
success on load. This patch causes cirrus_device_init to return on
the first error encountered.

Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/cirrus/cirrus_main.c