We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afcacac commit da59608Copy full SHA for da59608
drivers/gpu/drm/gma500/psb_drv.h
@@ -416,6 +416,7 @@ struct drm_psb_private {
416
uint32_t pipestat[PSB_NUM_PIPE];
417
418
spinlock_t irqmask_lock;
419
+ bool irq_enabled;
420
421
/* Power */
422
bool pm_initialized;
drivers/gpu/drm/gma500/psb_irq.c
@@ -327,6 +327,8 @@ int gma_irq_install(struct drm_device *dev)
327
328
gma_irq_postinstall(dev);
329
330
+ dev_priv->irq_enabled = true;
331
+
332
return 0;
333
}
334
@@ -337,6 +339,9 @@ void gma_irq_uninstall(struct drm_device *dev)
337
339
unsigned long irqflags;
338
340
unsigned int i;
341
342
+ if (!dev_priv->irq_enabled)
343
+ return;
344
345
spin_lock_irqsave(&dev_priv->irqmask_lock, irqflags);
346
347
if (dev_priv->ops->hotplug_enable)
0 commit comments