On Wed, 27 Mar 2019 at 19:01, Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: > > Driver core sets it to NULL upon probe failure or release. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Series applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/mmc_spi.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c > index 1b1498805972..2e9d830da2c7 100644 > --- a/drivers/mmc/host/mmc_spi.c > +++ b/drivers/mmc/host/mmc_spi.c > @@ -1485,7 +1485,6 @@ static int mmc_spi_probe(struct spi_device *spi) > fail_nobuf1: > mmc_free_host(mmc); > mmc_spi_put_pdata(spi); > - dev_set_drvdata(&spi->dev, NULL); > > nomem: > kfree(ones); > @@ -1520,7 +1519,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; > } > -- > 2.20.1 >