All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] watchdog: shwdt: Remove unused platform_set_drvdata()
@ 2014-03-29 10:29 Alexander Shiyan
  2014-04-01  0:00 ` Guenter Roeck
  2014-05-26 19:01 ` Wim Van Sebroeck
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Shiyan @ 2014-03-29 10:29 UTC (permalink / raw)
  To: linux-watchdog; +Cc: Wim Van Sebroeck, Alexander Shiyan

This patch removes platform_set_drvdata() which is not used in
the driver.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/watchdog/shwdt.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/watchdog/shwdt.c b/drivers/watchdog/shwdt.c
index d04d02b..061756e 100644
--- a/drivers/watchdog/shwdt.c
+++ b/drivers/watchdog/shwdt.c
@@ -282,8 +282,6 @@ static int sh_wdt_probe(struct platform_device *pdev)
 	wdt->timer.data		= (unsigned long)wdt;
 	wdt->timer.expires	= next_ping_period(clock_division_ratio);
 
-	platform_set_drvdata(pdev, wdt);
-
 	dev_info(&pdev->dev, "initialized.\n");
 
 	pm_runtime_enable(&pdev->dev);
-- 
1.8.3.2


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

* Re: [PATCH] watchdog: shwdt: Remove unused platform_set_drvdata()
  2014-03-29 10:29 [PATCH] watchdog: shwdt: Remove unused platform_set_drvdata() Alexander Shiyan
@ 2014-04-01  0:00 ` Guenter Roeck
  2014-05-26 19:01 ` Wim Van Sebroeck
  1 sibling, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2014-04-01  0:00 UTC (permalink / raw)
  To: Alexander Shiyan, linux-watchdog; +Cc: Wim Van Sebroeck

On 03/29/2014 03:29 AM, Alexander Shiyan wrote:
> This patch removes platform_set_drvdata() which is not used in
> the driver.
>
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>



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

* Re: [PATCH] watchdog: shwdt: Remove unused platform_set_drvdata()
  2014-03-29 10:29 [PATCH] watchdog: shwdt: Remove unused platform_set_drvdata() Alexander Shiyan
  2014-04-01  0:00 ` Guenter Roeck
@ 2014-05-26 19:01 ` Wim Van Sebroeck
  1 sibling, 0 replies; 3+ messages in thread
From: Wim Van Sebroeck @ 2014-05-26 19:01 UTC (permalink / raw)
  To: Alexander Shiyan; +Cc: linux-watchdog

Hi Alexander,

> This patch removes platform_set_drvdata() which is not used in
> the driver.
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
>  drivers/watchdog/shwdt.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/watchdog/shwdt.c b/drivers/watchdog/shwdt.c
> index d04d02b..061756e 100644
> --- a/drivers/watchdog/shwdt.c
> +++ b/drivers/watchdog/shwdt.c
> @@ -282,8 +282,6 @@ static int sh_wdt_probe(struct platform_device *pdev)
>  	wdt->timer.data		= (unsigned long)wdt;
>  	wdt->timer.expires	= next_ping_period(clock_division_ratio);
>  
> -	platform_set_drvdata(pdev, wdt);
> -
>  	dev_info(&pdev->dev, "initialized.\n");
>  
>  	pm_runtime_enable(&pdev->dev);

This patch has been added to linux-watchdog-next.

Kind regards,
Wim.


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

end of thread, other threads:[~2014-05-26 19:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-29 10:29 [PATCH] watchdog: shwdt: Remove unused platform_set_drvdata() Alexander Shiyan
2014-04-01  0:00 ` Guenter Roeck
2014-05-26 19:01 ` Wim Van Sebroeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.