From: Sachin Kamat Date: Fri, 20 Sep 2013 04:15:35 +0000 (+0530) Subject: regulator: tps6524x: Remove redundant spi_set_drvdata X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=78925b3a791b3ad485fe56d0b8951a5d043b7cae;p=linux-beck.git regulator: tps6524x: Remove redundant spi_set_drvdata Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c index 62e8d28beabd..8b9ee3983a6c 100644 --- a/drivers/regulator/tps6524x-regulator.c +++ b/drivers/regulator/tps6524x-regulator.c @@ -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; }