mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-06 12:00:25 +01:00
drm/modesetting: fixup irq removal on exit
This commit is contained in:
parent
f96baf1e1e
commit
47b7ec71fe
1 changed files with 2 additions and 3 deletions
|
|
@ -261,9 +261,6 @@ int drm_irq_uninstall(struct drm_device * dev)
|
|||
if (!drm_core_check_feature(dev, DRIVER_HAVE_IRQ))
|
||||
return -EINVAL;
|
||||
|
||||
if (drm_core_check_feature(dev, DRIVER_MODESET))
|
||||
return 0;
|
||||
|
||||
mutex_lock(&dev->struct_mutex);
|
||||
irq_enabled = dev->irq_enabled;
|
||||
dev->irq_enabled = 0;
|
||||
|
|
@ -318,6 +315,8 @@ int drm_control(struct drm_device *dev, void *data,
|
|||
case DRM_UNINST_HANDLER:
|
||||
if (!drm_core_check_feature(dev, DRIVER_HAVE_IRQ))
|
||||
return 0;
|
||||
if (drm_core_check_feature(dev, DRIVER_MODESET))
|
||||
return 0;
|
||||
return drm_irq_uninstall(dev);
|
||||
default:
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue