We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c15a4c commit c23cd8cCopy full SHA for c23cd8c
drivers/dma/at_hdmac.c
@@ -2084,7 +2084,7 @@ static int at_dma_resume_noirq(struct device *dev)
2084
return 0;
2085
}
2086
2087
-static const struct dev_pm_ops at_dma_dev_pm_ops = {
+static const struct dev_pm_ops __maybe_unused at_dma_dev_pm_ops = {
2088
.prepare = at_dma_prepare,
2089
.suspend_noirq = at_dma_suspend_noirq,
2090
.resume_noirq = at_dma_resume_noirq,
@@ -2096,7 +2096,7 @@ static struct platform_driver at_dma_driver = {
2096
.id_table = atdma_devtypes,
2097
.driver = {
2098
.name = "at_hdmac",
2099
- .pm = &at_dma_dev_pm_ops,
+ .pm = pm_ptr(&at_dma_dev_pm_ops),
2100
.of_match_table = of_match_ptr(atmel_dma_dt_ids),
2101
},
2102
};
0 commit comments