Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions drivers/i2c/busses/i2c-qcom-cci.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,24 +496,8 @@ static int __maybe_unused cci_resume_runtime(struct device *dev)
return 0;
}

static int __maybe_unused cci_suspend(struct device *dev)
{
if (!pm_runtime_suspended(dev))
return cci_suspend_runtime(dev);

return 0;
}

static int __maybe_unused cci_resume(struct device *dev)
{
cci_resume_runtime(dev);
pm_request_autosuspend(dev);

return 0;
}

static const struct dev_pm_ops qcom_cci_pm = {
SET_SYSTEM_SLEEP_PM_OPS(cci_suspend, cci_resume)
SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
SET_RUNTIME_PM_OPS(cci_suspend_runtime, cci_resume_runtime, NULL)
};

Expand Down