sdhci-pltfm.c (1691c261aec44f5262dbcf8846100dc4f256f3dd) sdhci-pltfm.c (32261f9b728277f88a0affa022df64e6238c24a6)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * sdhci-pltfm.c Support for SDHCI platform devices
4 * Copyright (c) 2009 Intel Corporation
5 *
6 * Copyright (c) 2007, 2011 Freescale Semiconductor, Inc.
7 * Copyright (c) 2009 MontaVista Software, Inc.
8 *

--- 185 unchanged lines hidden (view full) ---

194 int dead = (readl(host->ioaddr + SDHCI_INT_STATUS) == 0xffffffff);
195
196 sdhci_remove_host(host, dead);
197 clk_disable_unprepare(pltfm_host->clk);
198 sdhci_pltfm_free(pdev);
199}
200EXPORT_SYMBOL_GPL(sdhci_pltfm_unregister);
201
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * sdhci-pltfm.c Support for SDHCI platform devices
4 * Copyright (c) 2009 Intel Corporation
5 *
6 * Copyright (c) 2007, 2011 Freescale Semiconductor, Inc.
7 * Copyright (c) 2009 MontaVista Software, Inc.
8 *

--- 185 unchanged lines hidden (view full) ---

194 int dead = (readl(host->ioaddr + SDHCI_INT_STATUS) == 0xffffffff);
195
196 sdhci_remove_host(host, dead);
197 clk_disable_unprepare(pltfm_host->clk);
198 sdhci_pltfm_free(pdev);
199}
200EXPORT_SYMBOL_GPL(sdhci_pltfm_unregister);
201
202void sdhci_pltfm_remove(struct platform_device *pdev)
203{
204 struct sdhci_host *host = platform_get_drvdata(pdev);
205 int dead = (readl(host->ioaddr + SDHCI_INT_STATUS) == 0xffffffff);
206
207 sdhci_remove_host(host, dead);
208 sdhci_pltfm_free(pdev);
209}
210EXPORT_SYMBOL_GPL(sdhci_pltfm_remove);
211
202#ifdef CONFIG_PM_SLEEP
203int sdhci_pltfm_suspend(struct device *dev)
204{
205 struct sdhci_host *host = dev_get_drvdata(dev);
206 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
207 int ret;
208
209 if (host->tuning_mode != SDHCI_TUNING_MODE_3)

--- 52 unchanged lines hidden ---
212#ifdef CONFIG_PM_SLEEP
213int sdhci_pltfm_suspend(struct device *dev)
214{
215 struct sdhci_host *host = dev_get_drvdata(dev);
216 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
217 int ret;
218
219 if (host->tuning_mode != SDHCI_TUNING_MODE_3)

--- 52 unchanged lines hidden ---