projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41ed65e
)
mmc: mmc_spi: Remove redundant dev_set_drvdata()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Wed, 27 Mar 2019 18:01:06 +0000
(20:01 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 15 Apr 2019 09:55:54 +0000
(11:55 +0200)
Driver core sets it to NULL upon probe failure or release.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmc_spi.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/mmc_spi.c
b/drivers/mmc/host/mmc_spi.c
index a3533935e282bf0e4047858d89f3caeef3618250..36baa9e88648d84ed62c522e56f1af3f7235ddfa 100644
(file)
--- a/
drivers/mmc/host/mmc_spi.c
+++ b/
drivers/mmc/host/mmc_spi.c
@@
-1489,7
+1489,6
@@
fail_ones_dma:
fail_nobuf1:
mmc_free_host(mmc);
mmc_spi_put_pdata(spi);
- dev_set_drvdata(&spi->dev, NULL);
nomem:
kfree(ones);
@@
-1524,7
+1523,6
@@
static int mmc_spi_remove(struct spi_device *spi)
spi->max_speed_hz = mmc->f_max;
mmc_free_host(mmc);
mmc_spi_put_pdata(spi);
- dev_set_drvdata(&spi->dev, NULL);
}
return 0;
}