mmc: dw_mmc: move pmops into core driver
authorArnd Bergmann <arnd@arndb.de>
Wed, 4 Feb 2026 13:00:19 +0000 (14:00 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 23 Feb 2026 11:06:55 +0000 (12:06 +0100)
commitf3b9683bf5432aaada84bb4a7f815f3eb3148a90
treec2b8f169afe5040761f7af215d07643b68c2ce6d
parent4cd4e8231652872823ac5ed0be66df59ce7c778f
mmc: dw_mmc: move pmops into core driver

Since the platform power management structure is now shared with the PCI
front-end, there is a link failure if only the PCI variant is enabled:

arm-linux-gnueabi/bin/arm-linux-gnueabi-ld: drivers/mmc/host/dw_mmc-pci.o:(.data+0x74): undefined reference to `dw_mci_pltfm_pmops'

This could be fixed by selecting the platform driver from the PCI one
in Kconfig, or by reverting the change to the PCI driver, but since this
is now used by all dw_mmc variants, just move the structure into the core
code as well.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc-pltfm.c
drivers/mmc/host/dw_mmc.c