drm/radeon/kms: cleanup structure and module if initialization fails
authorJerome Glisse <jglisse@redhat.com>
Wed, 9 Dec 2009 17:21:55 +0000 (18:21 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 10 Dec 2009 05:09:07 +0000 (15:09 +1000)
commitcf0fe4566dcc0c5bd9b7da8c9a53e712593db118
treec9d5165a4a21c23316d7d2939fd8f79424ad90bb
parenteaa5fd1a66fefd7cc918d80250d66fa48b10b81f
drm/radeon/kms: cleanup structure and module if initialization fails

This would allow us to properly unload others module like TTM if
initialization fails after we initiliazed TTM structure.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/radeon/radeon_kms.c