X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=sound%2Fsoc%2Fcodecs%2Frt711-sdw.c;fp=sound%2Fsoc%2Fcodecs%2Frt711-sdw.c;h=988451f24a7562629b6dbf237a9fb99d3a9fb47e;hb=aae86cfd8790bcc7693a5a0894df58de5cb5128c;hp=3f5773310ae8cc3b5d94f76aa481724ac35bad0a;hpb=ee287771644394d071e6a331951ee8079b64f9a7;p=sfrench%2Fcifs-2.6.git diff --git a/sound/soc/codecs/rt711-sdw.c b/sound/soc/codecs/rt711-sdw.c index 3f5773310ae8..988451f24a75 100644 --- a/sound/soc/codecs/rt711-sdw.c +++ b/sound/soc/codecs/rt711-sdw.c @@ -536,12 +536,12 @@ static int __maybe_unused rt711_dev_resume(struct device *dev) return 0; if (!slave->unattach_request) { + mutex_lock(&rt711->disable_irq_lock); if (rt711->disable_irq == true) { - mutex_lock(&rt711->disable_irq_lock); sdw_write_no_pm(slave, SDW_SCP_INTMASK1, SDW_SCP_INT1_IMPL_DEF); rt711->disable_irq = false; - mutex_unlock(&rt711->disable_irq_lock); } + mutex_unlock(&rt711->disable_irq_lock); goto regmap_sync; }