void mxr_power_put(struct mxr_device *mdev) { /* If runtime PM is not implemented, mxr_runtime_suspend * function is directly called. */ #ifdef CONFIG_PM_RUNTIME pm_runtime_put_sync(mdev->dev); #else mxr_runtime_suspend(mdev->dev); #endif }
void mxr_power_put(struct mxr_device *mdev) { --mdev->n_power; mxr_dbg(mdev, "%s(%d)\n", __func__, mdev->n_power); /* If runtime PM is not implemented, mxr_runtime_suspend * function is directly called. */ if (mdev->n_power == 0) { #ifdef CONFIG_PM_RUNTIME pm_runtime_put_sync(mdev->dev); #else mxr_runtime_suspend(mdev->dev); #endif } }