gma500: psb_irq_turn_off_dpst() fix bit operation
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 3 May 2012 14:08:50 +0000 (15:08 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 7 May 2012 09:58:53 +0000 (10:58 +0100)
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/psb_irq.c

index 4ffb2a062098c40b29338e733fc288713e564d2a..8652cdf3f03f9d3dcb74d952be4d85d822223d83 100644 (file)
@@ -426,7 +426,7 @@ void psb_irq_turn_off_dpst(struct drm_device *dev)
                psb_disable_pipestat(dev_priv, 0, PIPE_DPST_EVENT_ENABLE);
 
                pwm_reg = PSB_RVDC32(PWM_CONTROL_LOGIC);
-               PSB_WVDC32(pwm_reg & !(PWM_PHASEIN_INT_ENABLE),
+               PSB_WVDC32(pwm_reg & ~PWM_PHASEIN_INT_ENABLE,
                                                        PWM_CONTROL_LOGIC);
                pwm_reg = PSB_RVDC32(PWM_CONTROL_LOGIC);