mfd: Fix max8925 irq control bit incorrect setting
authorKevin Liu <kliu5@marvell.com>
Wed, 8 Sep 2010 13:44:36 +0000 (09:44 -0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 29 Sep 2010 08:14:53 +0000 (10:14 +0200)
In max8925_irq_sync_unlock(), irq control bit is set at the same time.
Zero means enabling irq, and one means disabling irq.

The original code is:
irq_chg[0] &= irq_data->enable;

It should be changed to:
irq_chg[0] &= ~irq_data->enable;

Otherwise, irq control bit is mess.

Signed-off-by: Kevin Liu <kliu5@marvell.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

No differences found