* [PATCH 1/1] regulator: tps6524x: Remove redundant spi_set_drvdata
@ 2013-09-20 4:15 Sachin Kamat
2013-09-20 9:49 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2013-09-20 4:15 UTC (permalink / raw)
To: linux-kernel; +Cc: broonie, sachin.kamat
Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] regulator: tps6524x: Remove redundant spi_set_drvdata
2013-09-20 4:15 [PATCH 1/1] regulator: tps6524x: Remove redundant spi_set_drvdata Sachin Kamat
@ 2013-09-20 9:49 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-09-20 9:49 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 143 bytes --]
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.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-20 9:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-20 4:15 [PATCH 1/1] regulator: tps6524x: Remove redundant spi_set_drvdata Sachin Kamat
2013-09-20 9:49 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®