diff mbox

[2/3] Input: at32psif - Remove redundant platform_set_drvdata()

Message ID 1367577400-9527-2-git-send-email-sachin.kamat@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Sachin Kamat May 3, 2013, 10:36 a.m. UTC
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
---
 drivers/input/serio/at32psif.c |    2 --
 1 file changed, 2 deletions(-)

Comments

Hans-Christian Noren Egtvedt May 3, 2013, 11:26 a.m. UTC | #1
Around Fri 03 May 2013 16:06:39 +0530 or thereabout, Sachin Kamat wrote:
> Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
> driver is bound) removes the need to set driver data field to
> NULL.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>

Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>

> ---
>  drivers/input/serio/at32psif.c |    2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/input/serio/at32psif.c b/drivers/input/serio/at32psif.c
> index 190ce35..3290b28 100644
> --- a/drivers/input/serio/at32psif.c
> +++ b/drivers/input/serio/at32psif.c
> @@ -314,8 +314,6 @@ static int __exit psif_remove(struct platform_device *pdev)
>  	clk_put(psif->pclk);
>  	kfree(psif);
>  
> -	platform_set_drvdata(pdev, NULL);
> -
>  	return 0;
>  }
>
diff mbox

Patch

diff --git a/drivers/input/serio/at32psif.c b/drivers/input/serio/at32psif.c
index 190ce35..3290b28 100644
--- a/drivers/input/serio/at32psif.c
+++ b/drivers/input/serio/at32psif.c
@@ -314,8 +314,6 @@  static int __exit psif_remove(struct platform_device *pdev)
 	clk_put(psif->pclk);
 	kfree(psif);
 
-	platform_set_drvdata(pdev, NULL);
-
 	return 0;
 }