mmc: dw_mmc: move declaration of dw_mci_pmops

The dw_mci_pmops is exported out of dw_mmc.c so move the declaration of
ton dw_mmc.h from dw_mmc-pltfm.h to fix the following sparse warning:

drivers/mmc/host/dw_mmc.c:3512:25: warning: symbol 'dw_mci_pmops' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
This commit is contained in:
Ben Dooks 2026-07-10 17:12:54 +01:00 committed by Ulf Hansson
parent 30f4bb1f10
commit 6029de0f14
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,5 @@
extern int dw_mci_pltfm_register(struct platform_device *pdev,
const struct dw_mci_drv_data *drv_data);
extern void dw_mci_pltfm_remove(struct platform_device *pdev);
extern const struct dev_pm_ops dw_mci_pmops;
#endif /* _DW_MMC_PLTFM_H_ */

View File

@ -19,6 +19,8 @@
#include <linux/interrupt.h>
#include <linux/workqueue.h>
extern const struct dev_pm_ops dw_mci_pmops;
enum dw_mci_state {
STATE_IDLE = 0,
STATE_SENDING_CMD,