Skip to content

Commit ab148b4

Browse files
Srinivasa Rao Mandadapubroonie
authored andcommitted
ASoC: qcom: lpass-sc7280: Add maybe_unused tag for system PM ops
Add __maybe_unused tag for system PM ops suspend and resume. This is required to fix allmodconfig compilation issue. Fixes: a3a96e9 ("ASoC: qcom: lpass-sc7280: Add system suspend/resume PM ops") Signed-off-by: Srinivasa Rao Mandadapu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f19a2ca commit ab148b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sound/soc/qcom/lpass-sc7280.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,14 @@ static int sc7280_lpass_exit(struct platform_device *pdev)
235235
return 0;
236236
}
237237

238-
static int sc7280_lpass_dev_resume(struct device *dev)
238+
static int __maybe_unused sc7280_lpass_dev_resume(struct device *dev)
239239
{
240240
struct lpass_data *drvdata = dev_get_drvdata(dev);
241241

242242
return clk_bulk_prepare_enable(drvdata->num_clks, drvdata->clks);
243243
}
244244

245-
static int sc7280_lpass_dev_suspend(struct device *dev)
245+
static int __maybe_unused sc7280_lpass_dev_suspend(struct device *dev)
246246
{
247247
struct lpass_data *drvdata = dev_get_drvdata(dev);
248248

@@ -253,6 +253,7 @@ static int sc7280_lpass_dev_suspend(struct device *dev)
253253
static const struct dev_pm_ops sc7280_lpass_pm_ops = {
254254
SET_SYSTEM_SLEEP_PM_OPS(sc7280_lpass_dev_suspend, sc7280_lpass_dev_resume)
255255
};
256+
256257
static struct lpass_variant sc7280_data = {
257258
.i2sctrl_reg_base = 0x1000,
258259
.i2sctrl_reg_stride = 0x1000,

0 commit comments

Comments
 (0)