Skip to content

Commit

Permalink
mmc: pxamci: remove dead code from pxamci_remove()
Browse files Browse the repository at this point in the history
These gpio assignments don't make sense, as they are not used anywhere.
Remove the dead code.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Daniel Mack authored and Ulf Hansson committed Jul 16, 2018
1 parent 140b7fe commit 52c0918
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/mmc/host/pxamci.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,18 +806,12 @@ static int pxamci_probe(struct platform_device *pdev)
static int pxamci_remove(struct platform_device *pdev)
{
struct mmc_host *mmc = platform_get_drvdata(pdev);
int gpio_cd = -1, gpio_ro = -1, gpio_power = -1;

if (mmc) {
struct pxamci_host *host = mmc_priv(mmc);

mmc_remove_host(mmc);

if (host->pdata) {
gpio_cd = host->pdata->gpio_card_detect;
gpio_ro = host->pdata->gpio_card_ro;
gpio_power = host->pdata->gpio_power;
}
if (host->pdata && host->pdata->exit)
host->pdata->exit(&pdev->dev, mmc);

Expand All @@ -833,6 +827,7 @@ static int pxamci_remove(struct platform_device *pdev)

mmc_free_host(mmc);
}

return 0;
}

Expand Down

0 comments on commit 52c0918

Please sign in to comment.