diff options
author | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2011-08-26 11:17:42 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-26 10:46:42 -0700 |
commit | ee8cc854e643cb1e77ccdc9f6a84201c4d3324de (patch) | |
tree | 1cfd8c80b249d9ead07c80acd26032bc3e050381 /drivers/staging/gma500/psb_drv.c | |
parent | 99c978529a40132a6f7a5f136b4362b56fc88d8c (diff) | |
download | op-kernel-dev-ee8cc854e643cb1e77ccdc9f6a84201c4d3324de.zip op-kernel-dev-ee8cc854e643cb1e77ccdc9f6a84201c4d3324de.tar.gz |
gma500: Only register interrupt handler for poulsbo hardware
First step in adding proper irq handling. We'll start with poulsbo support so
make sure other chips don't touch drm_irq_install().
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/gma500/psb_drv.c')
-rw-r--r-- | drivers/staging/gma500/psb_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gma500/psb_drv.c b/drivers/staging/gma500/psb_drv.c index b2cdce7..d91083a 100644 --- a/drivers/staging/gma500/psb_drv.c +++ b/drivers/staging/gma500/psb_drv.c @@ -410,7 +410,7 @@ static int psb_driver_load(struct drm_device *dev, unsigned long chipset) PSB_WVDC32(0x00000000, PSB_INT_ENABLE_R); PSB_WVDC32(0xFFFFFFFF, PSB_INT_MASK_R); spin_unlock_irqrestore(&dev_priv->irqmask_lock, irqflags); - if (drm_core_check_feature(dev, DRIVER_MODESET)) + if (IS_PSB(dev) && drm_core_check_feature(dev, DRIVER_MODESET)) drm_irq_install(dev); dev->vblank_disable_allowed = 1; |