@@ -360,7 +360,7 @@ static int amd_mp2_pci_probe(struct pci_dev *pci_dev,
pm_runtime_set_autosuspend_delay(&pci_dev->dev, 1000);
pm_runtime_use_autosuspend(&pci_dev->dev);
- pm_runtime_put_autosuspend(&pci_dev->dev);
+ __pm_runtime_put_autosuspend(&pci_dev->dev);
pm_runtime_allow(&pci_dev->dev);
privdata->probed = true;
@@ -208,7 +208,7 @@ static inline void amd_mp2_pm_runtime_get(struct amd_mp2_dev *mp2_dev)
static inline void amd_mp2_pm_runtime_put(struct amd_mp2_dev *mp2_dev)
{
pm_runtime_mark_last_busy(&mp2_dev->pci_dev->dev);
- pm_runtime_put_autosuspend(&mp2_dev->pci_dev->dev);
+ __pm_runtime_put_autosuspend(&mp2_dev->pci_dev->dev);
}
#endif
@@ -717,7 +717,7 @@ static int at91_twi_xfer(struct i2c_adapter *adap, struct i2c_msg *msg, int num)
ret = (ret < 0) ? ret : num;
out:
pm_runtime_mark_last_busy(dev->dev);
- pm_runtime_put_autosuspend(dev->dev);
+ __pm_runtime_put_autosuspend(dev->dev);
return ret;
}
@@ -1129,7 +1129,7 @@ static int cdns_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
#endif
pm_runtime_mark_last_busy(id->dev);
- pm_runtime_put_autosuspend(id->dev);
+ __pm_runtime_put_autosuspend(id->dev);
return ret;
}
@@ -561,7 +561,7 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
out:
pm_runtime_mark_last_busy(dev->dev);
- pm_runtime_put_autosuspend(dev->dev);
+ __pm_runtime_put_autosuspend(dev->dev);
return ret;
}
@@ -867,7 +867,7 @@ static int davinci_i2c_probe(struct platform_device *pdev)
goto err_unuse_clocks;
pm_runtime_mark_last_busy(dev->dev);
- pm_runtime_put_autosuspend(dev->dev);
+ __pm_runtime_put_autosuspend(dev->dev);
return 0;
@@ -881,7 +881,7 @@ i2c_dw_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
done_nolock:
pm_runtime_mark_last_busy(dev->dev);
- pm_runtime_put_autosuspend(dev->dev);
+ __pm_runtime_put_autosuspend(dev->dev);
return ret;
}
@@ -285,7 +285,7 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev,
pm_runtime_set_autosuspend_delay(device, 1000);
pm_runtime_use_autosuspend(device);
- pm_runtime_put_autosuspend(device);
+ __pm_runtime_put_autosuspend(device);
pm_runtime_allow(device);
return 0;
@@ -374,7 +374,7 @@ static int hix5hd2_i2c_xfer(struct i2c_adapter *adap,
out:
pm_runtime_mark_last_busy(priv->dev);
- pm_runtime_put_autosuspend(priv->dev);
+ __pm_runtime_put_autosuspend(priv->dev);
return ret;
}
@@ -934,7 +934,7 @@ static s32 i801_access(struct i2c_adapter *adap, u16 addr,
outb_p(SMBHSTSTS_INUSE_STS | STATUS_FLAGS, SMBHSTSTS(priv));
pm_runtime_mark_last_busy(&priv->pci_dev->dev);
- pm_runtime_put_autosuspend(&priv->pci_dev->dev);
+ __pm_runtime_put_autosuspend(&priv->pci_dev->dev);
return ret;
}
@@ -1797,7 +1797,7 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)
dev_pm_set_driver_flags(&dev->dev, DPM_FLAG_NO_DIRECT_COMPLETE);
pm_runtime_set_autosuspend_delay(&dev->dev, 1000);
pm_runtime_use_autosuspend(&dev->dev);
- pm_runtime_put_autosuspend(&dev->dev);
+ __pm_runtime_put_autosuspend(&dev->dev);
pm_runtime_allow(&dev->dev);
return 0;
@@ -1132,7 +1132,7 @@ static int img_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
}
pm_runtime_mark_last_busy(adap->dev.parent);
- pm_runtime_put_autosuspend(adap->dev.parent);
+ __pm_runtime_put_autosuspend(adap->dev.parent);
return i2c->msg_status ? i2c->msg_status : num;
}
@@ -1166,7 +1166,7 @@ static int img_i2c_init(struct img_i2c *i2c)
(rev >> 24) & 0xff, (rev >> 16) & 0xff,
(rev >> 8) & 0xff, rev & 0xff);
pm_runtime_mark_last_busy(i2c->adap.dev.parent);
- pm_runtime_put_autosuspend(i2c->adap.dev.parent);
+ __pm_runtime_put_autosuspend(i2c->adap.dev.parent);
return -EINVAL;
}
@@ -1318,7 +1318,7 @@ static int img_i2c_init(struct img_i2c *i2c)
ret = img_i2c_reset_bus(i2c);
pm_runtime_mark_last_busy(i2c->adap.dev.parent);
- pm_runtime_put_autosuspend(i2c->adap.dev.parent);
+ __pm_runtime_put_autosuspend(i2c->adap.dev.parent);
return ret;
}
@@ -286,7 +286,7 @@ static int lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx)
rpm_put:
pm_runtime_mark_last_busy(lpi2c_imx->adapter.dev.parent);
- pm_runtime_put_autosuspend(lpi2c_imx->adapter.dev.parent);
+ __pm_runtime_put_autosuspend(lpi2c_imx->adapter.dev.parent);
return ret;
}
@@ -300,7 +300,7 @@ static int lpi2c_imx_master_disable(struct lpi2c_imx_struct *lpi2c_imx)
writel(temp, lpi2c_imx->base + LPI2C_MCR);
pm_runtime_mark_last_busy(lpi2c_imx->adapter.dev.parent);
- pm_runtime_put_autosuspend(lpi2c_imx->adapter.dev.parent);
+ __pm_runtime_put_autosuspend(lpi2c_imx->adapter.dev.parent);
return 0;
}
@@ -645,7 +645,7 @@ static int lpi2c_imx_probe(struct platform_device *pdev)
goto rpm_disable;
pm_runtime_mark_last_busy(&pdev->dev);
- pm_runtime_put_autosuspend(&pdev->dev);
+ __pm_runtime_put_autosuspend(&pdev->dev);
dev_info(&lpi2c_imx->adapter.dev, "LPI2C adapter registered\n");
@@ -1336,7 +1336,7 @@ static int i2c_imx_xfer(struct i2c_adapter *adapter,
result = i2c_imx_xfer_common(adapter, msgs, num, false);
pm_runtime_mark_last_busy(i2c_imx->adapter.dev.parent);
- pm_runtime_put_autosuspend(i2c_imx->adapter.dev.parent);
+ __pm_runtime_put_autosuspend(i2c_imx->adapter.dev.parent);
return result;
}
@@ -1492,7 +1492,7 @@ static int i2c_imx_probe(struct platform_device *pdev)
goto clk_notifier_unregister;
pm_runtime_mark_last_busy(&pdev->dev);
- pm_runtime_put_autosuspend(&pdev->dev);
+ __pm_runtime_put_autosuspend(&pdev->dev);
dev_dbg(&i2c_imx->adapter.dev, "claimed irq %d\n", irq);
dev_dbg(&i2c_imx->adapter.dev, "device resources: %pR\n", res);
@@ -773,7 +773,7 @@ mv64xxx_i2c_xfer_core(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
drv_data->msgs = NULL;
pm_runtime_mark_last_busy(&adap->dev);
- pm_runtime_put_autosuspend(&adap->dev);
+ __pm_runtime_put_autosuspend(&adap->dev);
return ret;
}
@@ -217,7 +217,7 @@ static int gpu_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
dev_err(i2cd->dev, "i2c stop failed %d\n", status2);
}
pm_runtime_mark_last_busy(i2cd->dev);
- pm_runtime_put_autosuspend(i2cd->dev);
+ __pm_runtime_put_autosuspend(i2cd->dev);
return status;
}
@@ -318,7 +318,7 @@ static int gpu_i2c_probe(struct pci_dev *pdev, const struct pci_device_id *id)
pm_runtime_set_autosuspend_delay(dev, 3000);
pm_runtime_use_autosuspend(dev);
- pm_runtime_put_autosuspend(dev);
+ __pm_runtime_put_autosuspend(dev);
pm_runtime_allow(dev);
return 0;
@@ -827,7 +827,7 @@ omap_i2c_xfer_common(struct i2c_adapter *adap, struct i2c_msg msgs[], int num,
out:
pm_runtime_mark_last_busy(omap->dev);
- pm_runtime_put_autosuspend(omap->dev);
+ __pm_runtime_put_autosuspend(omap->dev);
return r;
}
@@ -1502,7 +1502,7 @@ omap_i2c_probe(struct platform_device *pdev)
major, minor, omap->speed);
pm_runtime_mark_last_busy(omap->dev);
- pm_runtime_put_autosuspend(omap->dev);
+ __pm_runtime_put_autosuspend(omap->dev);
return 0;
@@ -1590,7 +1590,7 @@ static int omap_i2c_suspend(struct device *dev)
static int omap_i2c_resume(struct device *dev)
{
pm_runtime_mark_last_busy(dev);
- pm_runtime_put_autosuspend(dev);
+ __pm_runtime_put_autosuspend(dev);
return 0;
}
@@ -452,7 +452,7 @@ static int cci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
err:
pm_runtime_mark_last_busy(cci->dev);
- pm_runtime_put_autosuspend(cci->dev);
+ __pm_runtime_put_autosuspend(cci->dev);
return ret;
}
@@ -716,7 +716,7 @@ static int geni_i2c_xfer(struct i2c_adapter *adap,
ret = geni_i2c_fifo_xfer(gi2c, msgs, num);
pm_runtime_mark_last_busy(gi2c->se.dev);
- pm_runtime_put_autosuspend(gi2c->se.dev);
+ __pm_runtime_put_autosuspend(gi2c->se.dev);
gi2c->cur = NULL;
gi2c->err = 0;
return ret;
@@ -1109,7 +1109,7 @@ static int qup_i2c_xfer(struct i2c_adapter *adap,
out:
pm_runtime_mark_last_busy(qup->dev);
- pm_runtime_put_autosuspend(qup->dev);
+ __pm_runtime_put_autosuspend(qup->dev);
return ret;
}
@@ -1594,7 +1594,7 @@ static int qup_i2c_xfer_v2(struct i2c_adapter *adap,
ret = num;
out:
pm_runtime_mark_last_busy(qup->dev);
- pm_runtime_put_autosuspend(qup->dev);
+ __pm_runtime_put_autosuspend(qup->dev);
return ret;
}
@@ -178,7 +178,7 @@ static int riic_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
out:
pm_runtime_mark_last_busy(dev);
- pm_runtime_put_autosuspend(dev);
+ __pm_runtime_put_autosuspend(dev);
return riic->err ?: num;
}
@@ -412,7 +412,7 @@ static int riic_init_hw(struct riic_dev *riic)
riic_clear_set_bit(riic, ICCR1_IICRST, 0, RIIC_ICCR1);
pm_runtime_mark_last_busy(dev);
- pm_runtime_put_autosuspend(dev);
+ __pm_runtime_put_autosuspend(dev);
return 0;
}
@@ -378,7 +378,7 @@ static int rzv2m_i2c_xfer(struct i2c_adapter *adap,
out:
pm_runtime_mark_last_busy(dev);
- pm_runtime_put_autosuspend(dev);
+ __pm_runtime_put_autosuspend(dev);
return ret;
}
@@ -303,7 +303,7 @@ static int sprd_i2c_xfer(struct i2c_adapter *i2c_adap,
err_msg:
pm_runtime_mark_last_busy(i2c_dev->dev);
- pm_runtime_put_autosuspend(i2c_dev->dev);
+ __pm_runtime_put_autosuspend(i2c_dev->dev);
return ret < 0 ? ret : im;
}
@@ -560,7 +560,7 @@ static int sprd_i2c_probe(struct platform_device *pdev)
}
pm_runtime_mark_last_busy(i2c_dev->dev);
- pm_runtime_put_autosuspend(i2c_dev->dev);
+ __pm_runtime_put_autosuspend(i2c_dev->dev);
return 0;
err_rpm_put:
@@ -1757,7 +1757,7 @@ static int stm32f7_i2c_xfer_core(struct i2c_adapter *i2c_adap,
pm_free:
pm_runtime_mark_last_busy(i2c_dev->dev);
- pm_runtime_put_autosuspend(i2c_dev->dev);
+ __pm_runtime_put_autosuspend(i2c_dev->dev);
return (ret < 0) ? ret : num;
}
@@ -1866,7 +1866,7 @@ static int stm32f7_i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr,
pm_free:
pm_runtime_mark_last_busy(dev);
- pm_runtime_put_autosuspend(dev);
+ __pm_runtime_put_autosuspend(dev);
return ret;
}
@@ -1973,7 +1973,7 @@ static int stm32f7_i2c_reg_slave(struct i2c_client *slave)
stm32f7_i2c_enable_wakeup(i2c_dev, false);
pm_runtime_mark_last_busy(dev);
- pm_runtime_put_autosuspend(dev);
+ __pm_runtime_put_autosuspend(dev);
return ret;
}
@@ -2011,7 +2011,7 @@ static int stm32f7_i2c_unreg_slave(struct i2c_client *slave)
}
pm_runtime_mark_last_busy(i2c_dev->dev);
- pm_runtime_put_autosuspend(i2c_dev->dev);
+ __pm_runtime_put_autosuspend(i2c_dev->dev);
return 0;
}
@@ -2324,7 +2324,7 @@ static int stm32f7_i2c_probe(struct platform_device *pdev)
dev_info(i2c_dev->dev, "STM32F7 I2C-%d bus adapter\n", adap->nr);
pm_runtime_mark_last_busy(i2c_dev->dev);
- pm_runtime_put_autosuspend(i2c_dev->dev);
+ __pm_runtime_put_autosuspend(i2c_dev->dev);
return 0;
@@ -1194,7 +1194,7 @@ static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
out:
pm_runtime_mark_last_busy(i2c->dev);
- pm_runtime_put_autosuspend(i2c->dev);
+ __pm_runtime_put_autosuspend(i2c->dev);
return err;
}
pm_runtime_put_autosuspend() will soon be changed to include a call to pm_runtime_mark_last_busy(). This patch switches the current users to __pm_runtime_put_autosuspend() which will continue to have the functionality of old pm_runtime_put_autosuspend(). Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> --- drivers/i2c/busses/i2c-amd-mp2-pci.c | 2 +- drivers/i2c/busses/i2c-amd-mp2.h | 2 +- drivers/i2c/busses/i2c-at91-master.c | 2 +- drivers/i2c/busses/i2c-cadence.c | 2 +- drivers/i2c/busses/i2c-davinci.c | 4 ++-- drivers/i2c/busses/i2c-designware-master.c | 2 +- drivers/i2c/busses/i2c-designware-pcidrv.c | 2 +- drivers/i2c/busses/i2c-hix5hd2.c | 2 +- drivers/i2c/busses/i2c-i801.c | 4 ++-- drivers/i2c/busses/i2c-img-scb.c | 6 +++--- drivers/i2c/busses/i2c-imx-lpi2c.c | 6 +++--- drivers/i2c/busses/i2c-imx.c | 4 ++-- drivers/i2c/busses/i2c-mv64xxx.c | 2 +- drivers/i2c/busses/i2c-nvidia-gpu.c | 4 ++-- drivers/i2c/busses/i2c-omap.c | 6 +++--- drivers/i2c/busses/i2c-qcom-cci.c | 2 +- drivers/i2c/busses/i2c-qcom-geni.c | 2 +- drivers/i2c/busses/i2c-qup.c | 4 ++-- drivers/i2c/busses/i2c-riic.c | 4 ++-- drivers/i2c/busses/i2c-rzv2m.c | 2 +- drivers/i2c/busses/i2c-sprd.c | 4 ++-- drivers/i2c/busses/i2c-stm32f7.c | 10 +++++----- drivers/i2c/busses/i2c-xiic.c | 2 +- 23 files changed, 40 insertions(+), 40 deletions(-)