linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: wm831x: get rid of the implementation of remove function
@ 2013-09-26 13:48 Laxman Dewangan
  2013-09-26 14:47 ` Mark Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Laxman Dewangan @ 2013-09-26 13:48 UTC (permalink / raw)
  To: linux-arm-kernel

The remove function implemented for platform driver's remove callback
just return 0 as part of its implementation.

Remove this APIs and do not pass the valid .remove for platform driver.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
I was referring this driver for clock driver implementation for Palma and
realise that this remove function can be removed.
This is just outcome of code reading.

 drivers/clk/clk-wm831x.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/drivers/clk/clk-wm831x.c b/drivers/clk/clk-wm831x.c
index 805b4c3..b131041 100644
--- a/drivers/clk/clk-wm831x.c
+++ b/drivers/clk/clk-wm831x.c
@@ -391,14 +391,8 @@ static int wm831x_clk_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int wm831x_clk_remove(struct platform_device *pdev)
-{
-	return 0;
-}
-
 static struct platform_driver wm831x_clk_driver = {
 	.probe = wm831x_clk_probe,
-	.remove = wm831x_clk_remove,
 	.driver		= {
 		.name	= "wm831x-clk",
 		.owner	= THIS_MODULE,
-- 
1.7.1.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] clk: wm831x: get rid of the implementation of remove function
  2013-09-26 13:48 [PATCH] clk: wm831x: get rid of the implementation of remove function Laxman Dewangan
@ 2013-09-26 14:47 ` Mark Brown
  2013-10-02 13:54   ` Mike Turquette
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2013-09-26 14:47 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Sep 26, 2013 at 07:18:15PM +0530, Laxman Dewangan wrote:
> The remove function implemented for platform driver's remove callback
> just return 0 as part of its implementation.
> 
> Remove this APIs and do not pass the valid .remove for platform driver.

Yes, this should have been done when the driver was coverted to
devm_clk_register()

Acked-by: Mark Brown <broonie@linaro.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130926/e74e0792/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] clk: wm831x: get rid of the implementation of remove function
  2013-09-26 14:47 ` Mark Brown
@ 2013-10-02 13:54   ` Mike Turquette
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Turquette @ 2013-10-02 13:54 UTC (permalink / raw)
  To: linux-arm-kernel

Quoting Mark Brown (2013-09-26 07:47:43)
> On Thu, Sep 26, 2013 at 07:18:15PM +0530, Laxman Dewangan wrote:
> > The remove function implemented for platform driver's remove callback
> > just return 0 as part of its implementation.
> > 
> > Remove this APIs and do not pass the valid .remove for platform driver.
> 
> Yes, this should have been done when the driver was coverted to
> devm_clk_register()
> 
> Acked-by: Mark Brown <broonie@linaro.org>

Taken into clk-next.

Thanks,
Mike

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-02 13:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-26 13:48 [PATCH] clk: wm831x: get rid of the implementation of remove function Laxman Dewangan
2013-09-26 14:47 ` Mark Brown
2013-10-02 13:54   ` Mike Turquette

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).