drm: Avoid calling vblank function is vblank wasn't initialized
authorJerome Glisse <jglisse@redhat.com>
Thu, 7 Jan 2010 14:39:13 +0000 (15:39 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Jan 2010 03:12:09 +0000 (13:12 +1000)
In some case vblank might not be initialized and we shouldn't
try to use associated function. This patch make sure this is
the case. It also export drm_vblank_cleanup so driver can cleanup
vblank if for any reason IRQ/MSI is not working.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found