drm/nouveau: initialise display before enabling interrupts
authorBen Skeggs <bskeggs@redhat.com>
Fri, 9 Jul 2010 00:56:08 +0000 (10:56 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 13 Jul 2010 00:13:56 +0000 (10:13 +1000)
In some situations it's possible we can receive a spurious hotplug IRQ
before we're ready to handle it, leading to an oops.

Calling the display init before enabling interrupts should clear any
pending IRQs on the GPU and prevent this from happening.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_state.c