Merge remote-tracking branches 'asoc/topic/intel', 'asoc/topic/kirkwood', 'asoc/topic...
authorMark Brown <broonie@kernel.org>
Sun, 30 Aug 2015 14:54:38 +0000 (15:54 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 30 Aug 2015 14:54:38 +0000 (15:54 +0100)
1  2  3  4  5  6 
sound/soc/codecs/lm49453.c
sound/soc/codecs/max98088.c
sound/soc/intel/atom/sst-atom-controls.c
sound/soc/intel/atom/sst/sst_drv_interface.c

Simple merge
Simple merge
index 0e0e4d9c021ff29bdf1f19eda2827ac459e4046c,27a9653aa3d901529217937298b2f50808ad04c2,620da1d1b9e3ea4fbde293c3e98fae4c30708ac1,620da1d1b9e3ea4fbde293c3e98fae4c30708ac1,620da1d1b9e3ea4fbde293c3e98fae4c30708ac1,620da1d1b9e3ea4fbde293c3e98fae4c30708ac1..ce689c5af5abca7428afe57a88dbee3513fae1b3
@@@@@@@ -146,11 -141,18 -141,17 -141,17 -141,17 -141,17 +146,12 @@@@@@@ static int sst_power_control(struct dev
        int ret = 0;
        int usage_count = 0;
      
 -----#ifdef CONFIG_PM
 -----  usage_count = atomic_read(&dev->power.usage_count);
 -----#else
 -----  usage_count = 1;
 -----#endif
 -----
        if (state == true) {
                ret = pm_runtime_get_sync(dev);
 -----
 +++++          usage_count = GET_USAGE_COUNT(dev);
                dev_dbg(ctx->dev, "Enable: pm usage count: %d\n", usage_count);
                if (ret < 0) {
+ ++++                  pm_runtime_put_sync(dev);
                        dev_err(ctx->dev, "Runtime get failed with err: %d\n", ret);
                        return ret;
                }