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
@@@@@@@ -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;
                }