regulator: tps6524x: Remove redundant spi_set_drvdata
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 20 Sep 2013 04:15:35 +0000 (09:45 +0530)
committerMark Brown <broonie@linaro.org>
Fri, 20 Sep 2013 09:49:34 +0000 (10:49 +0100)
Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/tps6524x-regulator.c

index 62e8d28beabd7cc8ad51b2935e29b7d348e17438..8b9ee3983a6cf8145fec958f4e851371fa888973 100644 (file)
@@ -588,7 +588,6 @@ static int pmic_remove(struct spi_device *spi)
                regulator_unregister(hw->rdev[i]);
                hw->rdev[i] = NULL;
        }
-       spi_set_drvdata(spi, NULL);
        return 0;
 }
 
This page took 0.024729 seconds and 5 git commands to generate.