[PATCH 05/10] mfd add irq support in 88pm860x
Haojian Zhuang
haojian.zhuang at gmail.com
Tue Nov 17 01:32:41 EST 2009
On Fri, Nov 13, 2009 at 11:56 PM, Dmitry Torokhov
<dmitry.torokhov at gmail.com> wrote:
> On Fri, Nov 13, 2009 at 03:59:21AM -0500, Haojian Zhuang wrote:
>> +
>> + mutex_lock(&chip->irq_lock);
>> + memset(chip->irq, 0, sizeof(struct pm860x_irq) * PM860X_NUM_IRQ);
>> + mutex_unlock(&chip->irq_lock);
>
> Why do you take lock here? Can anyone else be touching chip->irq at this
> point?
>
> --
> Dmitry
>
Updated.
Haojian
More information about the linux-arm-kernel
mailing list