drm: Avoid calling vblank function is vblank wasn't initialized
commite77cef9c2d87db835ad9d70cde4a9b00b0ca2262
authorJerome Glisse <jglisse@redhat.com>
Thu, 7 Jan 2010 14:39:13 +0000 (7 15:39 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Jan 2010 03:12:09 +0000 (8 13:12 +1000)
tree27336938ecaeed58acb4218310f6b3dd516b5f26
parent059d233f9c1183ed2f59d631e4daf486060e880d
drm: Avoid calling vblank function is vblank wasn't initialized

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>
drivers/gpu/drm/drm_irq.c