Commit c0d638a
mmc: mediatek: mark PM functions as __maybe_unused
The #ifdef check for the suspend/resume functions is wrong:
drivers/mmc/host/mtk-sd.c:2765:12: error: unused function 'msdc_suspend' [-Werror,-Wunused-function]
static int msdc_suspend(struct device *dev)
drivers/mmc/host/mtk-sd.c:2779:12: error: unused function 'msdc_resume' [-Werror,-Wunused-function]
static int msdc_resume(struct device *dev)
Remove the #ifdef and mark all four as __maybe_unused to aovid the
problem.
Fixes: c0a2074 ("mmc: mediatek: Fix system suspend/resume support for CQHCI")
Cc: stable@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20201203222922.1067522-1-arnd@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>1 parent 6246d7c commit c0d638a
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2604 | 2604 | | |
2605 | 2605 | | |
2606 | 2606 | | |
2607 | | - | |
2608 | 2607 | | |
2609 | 2608 | | |
2610 | 2609 | | |
| |||
2663 | 2662 | | |
2664 | 2663 | | |
2665 | 2664 | | |
2666 | | - | |
| 2665 | + | |
2667 | 2666 | | |
2668 | 2667 | | |
2669 | 2668 | | |
| |||
2673 | 2672 | | |
2674 | 2673 | | |
2675 | 2674 | | |
2676 | | - | |
| 2675 | + | |
2677 | 2676 | | |
2678 | 2677 | | |
2679 | 2678 | | |
| |||
2683 | 2682 | | |
2684 | 2683 | | |
2685 | 2684 | | |
2686 | | - | |
| 2685 | + | |
2687 | 2686 | | |
2688 | 2687 | | |
2689 | 2688 | | |
| |||
2697 | 2696 | | |
2698 | 2697 | | |
2699 | 2698 | | |
2700 | | - | |
| 2699 | + | |
2701 | 2700 | | |
2702 | 2701 | | |
2703 | 2702 | | |
2704 | | - | |
2705 | 2703 | | |
2706 | 2704 | | |
2707 | 2705 | | |
| |||
0 commit comments