]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: sdhci-f-sdh30: Replace with sdhci_pltfm
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Fri, 30 Jun 2023 00:45:33 +0000 (09:45 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Aug 2023 12:23:21 +0000 (14:23 +0200)
commita798977df6d0636865b23e3b0f76255513c47546
tree6fce186162d57e0744bb4d66329dc485ff9f50b0
parentf6f7927ac664ba23447f8dd3c3dfe2f4ee39272f
mmc: sdhci-f-sdh30: Replace with sdhci_pltfm

[ Upstream commit 5def5c1c15bf22934ee227af85c1716762f3829f ]

Even if sdhci_pltfm_pmops is specified for PM, this driver doesn't apply
sdhci_pltfm, so the structure is not correctly referenced in PM functions.
This applies sdhci_pltfm to this driver to fix this issue.

- Call sdhci_pltfm_init() instead of sdhci_alloc_host() and
  other functions that covered by sdhci_pltfm.
- Move ops and quirks to sdhci_pltfm_data
- Replace sdhci_priv() with own private function sdhci_f_sdh30_priv().

Fixes: 87a507459f49 ("mmc: sdhci: host: add new f_sdh30")
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230630004533.26644-1-hayashi.kunihiko@socionext.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/sdhci_f_sdh30.c