cirrus: avoid crash if driver fails to load
authorDave Airlie <airlied@redhat.com>
Thu, 31 May 2012 12:53:56 +0000 (13:53 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 31 May 2012 12:53:56 +0000 (13:53 +0100)
commit93b4cc56aa09df24dc011ab9fc1d3a1c3f86ba1a
treea64e270ec2ab8f3f27e264d5581b9f0569b302f3
parentbc42aabc6a01b92b0f961d65671564e0e1cd7592
cirrus: avoid crash if driver fails to load

If we haven't inited the mm code, don't try and tear it down.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/cirrus/cirrus_drv.h
drivers/gpu/drm/cirrus/cirrus_ttm.c