drm: Fix irq install error handling
authorJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 4 Aug 2011 05:41:00 +0000 (05:41 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 4 Aug 2011 13:39:09 +0000 (14:39 +0100)
commite1c44acc8cabda6b38864f25e809b306c4d2d790
tree42c6c31cf5e264e161e1d213b683c7ccceb09a98
parent816985d4f96cda5159b6b65f3442964725030ae9
drm: Fix irq install error handling

The registered irq should be unregistered by free_irq() if
irq_postinstall() returns the error after request_irq() is called
successfully.

[airlied: add vga switcheroo disable]

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_irq.c