Commit b9ffe408 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Ulf Hansson

mmc: mmc_spi: Remove redundant dev_set_drvdata()

Driver core sets it to NULL upon probe failure or release.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 41ed65e7
...@@ -1489,7 +1489,6 @@ static int mmc_spi_probe(struct spi_device *spi) ...@@ -1489,7 +1489,6 @@ static int mmc_spi_probe(struct spi_device *spi)
fail_nobuf1: fail_nobuf1:
mmc_free_host(mmc); mmc_free_host(mmc);
mmc_spi_put_pdata(spi); mmc_spi_put_pdata(spi);
dev_set_drvdata(&spi->dev, NULL);
nomem: nomem:
kfree(ones); kfree(ones);
...@@ -1524,7 +1523,6 @@ static int mmc_spi_remove(struct spi_device *spi) ...@@ -1524,7 +1523,6 @@ static int mmc_spi_remove(struct spi_device *spi)
spi->max_speed_hz = mmc->f_max; spi->max_speed_hz = mmc->f_max;
mmc_free_host(mmc); mmc_free_host(mmc);
mmc_spi_put_pdata(spi); mmc_spi_put_pdata(spi);
dev_set_drvdata(&spi->dev, NULL);
} }
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