mfd: max77663: Add gpio irq masking in irq_sync_unlock
Jinyoung Park [Mon, 23 Apr 2012 09:49:33 +0000 (18:49 +0900)]
Add gpio irq masking in irq_sync_unlock.

Change-Id: I008caf58ae82d9ed888f4720f54675e9106f027d
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/98664
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

drivers/mfd/max77663-core.c

index dbd4fff..46728c3 100644 (file)
@@ -905,6 +905,8 @@ static void max77663_irq_sync_unlock(struct irq_data *data)
                                irq_mask = irq_data->trigger_type;
                        else
                                irq_mask = GPIO_REFE_IRQ_EDGE_FALLING << shift;
+               } else {
+                       irq_mask = GPIO_REFE_IRQ_NONE << shift;
                }
 
                ret = max77663_cache_write(chip->dev, GPIO_REG_ADDR(offset),