2013-09-20 04:15:25

by Sachin Kamat

[permalink] [raw]
Subject: [PATCH 1/1] regulator: tps6524x: Remove redundant spi_set_drvdata

Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <[email protected]>
---
drivers/regulator/tps6524x-regulator.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c
index 62e8d28..8b9ee39 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;
}

--
1.7.9.5


2013-09-20 09:50:30

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH 1/1] regulator: tps6524x: Remove redundant spi_set_drvdata

On Fri, Sep 20, 2013 at 09:45:35AM +0530, Sachin Kamat wrote:
> Driver core sets driver data to NULL upon failure or remove.

Applied, thanks.


Attachments:
(No filename) (143.00 B)
signature.asc (836.00 B)
Digital signature
Download all attachments