Commit 6a686c31 authored by Sebastian Hesselbarth's avatar Sebastian Hesselbarth Committed by Ulf Hansson

mmc: sdhci-pxav2: Drop unused struct sdhci_pxa

struct sdhci_pxa is private data of PXA SDHCI driver, but not used in
sdhci-pxav2 at all. Drop unused references to struct sdhci_pxa.
Signed-off-by: default avatarSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 05e07d8b
...@@ -167,23 +167,17 @@ static int sdhci_pxav2_probe(struct platform_device *pdev) ...@@ -167,23 +167,17 @@ static int sdhci_pxav2_probe(struct platform_device *pdev)
struct sdhci_pxa_platdata *pdata = pdev->dev.platform_data; struct sdhci_pxa_platdata *pdata = pdev->dev.platform_data;
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct sdhci_host *host = NULL; struct sdhci_host *host = NULL;
struct sdhci_pxa *pxa = NULL;
const struct of_device_id *match; const struct of_device_id *match;
int ret; int ret;
struct clk *clk; struct clk *clk;
pxa = kzalloc(sizeof(struct sdhci_pxa), GFP_KERNEL);
if (!pxa)
return -ENOMEM;
host = sdhci_pltfm_init(pdev, NULL, 0); host = sdhci_pltfm_init(pdev, NULL, 0);
if (IS_ERR(host)) { if (IS_ERR(host))
kfree(pxa);
return PTR_ERR(host); return PTR_ERR(host);
}
pltfm_host = sdhci_priv(host); pltfm_host = sdhci_priv(host);
pltfm_host->priv = pxa; pltfm_host->priv = NULL;
clk = clk_get(dev, "PXA-SDHCLK"); clk = clk_get(dev, "PXA-SDHCLK");
if (IS_ERR(clk)) { if (IS_ERR(clk)) {
...@@ -238,7 +232,6 @@ static int sdhci_pxav2_probe(struct platform_device *pdev) ...@@ -238,7 +232,6 @@ static int sdhci_pxav2_probe(struct platform_device *pdev)
clk_put(clk); clk_put(clk);
err_clk_get: err_clk_get:
sdhci_pltfm_free(pdev); sdhci_pltfm_free(pdev);
kfree(pxa);
return ret; return ret;
} }
...@@ -246,14 +239,12 @@ static int sdhci_pxav2_remove(struct platform_device *pdev) ...@@ -246,14 +239,12 @@ static int sdhci_pxav2_remove(struct platform_device *pdev)
{ {
struct sdhci_host *host = platform_get_drvdata(pdev); struct sdhci_host *host = platform_get_drvdata(pdev);
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
struct sdhci_pxa *pxa = pltfm_host->priv;
sdhci_remove_host(host, 1); sdhci_remove_host(host, 1);
clk_disable_unprepare(pltfm_host->clk); clk_disable_unprepare(pltfm_host->clk);
clk_put(pltfm_host->clk); clk_put(pltfm_host->clk);
sdhci_pltfm_free(pdev); sdhci_pltfm_free(pdev);
kfree(pxa);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment