All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpio: da9052: remove a redundant assignment for gpio->da9052
@ 2011-07-11  0:53 Axel Lin
  2011-07-15  2:53 ` Grant Likely
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-07-11  0:53 UTC (permalink / raw)
  To: linux-kernel; +Cc: David Dajun Chen, Grant Likely

We just set it twice in da9052_gpio_probe.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/gpio/gpio-da9052.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/gpio/gpio-da9052.c b/drivers/gpio/gpio-da9052.c
index c23761f..038f5eb 100644
--- a/drivers/gpio/gpio-da9052.c
+++ b/drivers/gpio/gpio-da9052.c
@@ -219,7 +219,6 @@ static int __devinit da9052_gpio_probe(struct platform_device *pdev)
 	gpio->da9052 = dev_get_drvdata(pdev->dev.parent);
 	pdata = gpio->da9052->dev->platform_data;
 
-	gpio->da9052 = dev_get_drvdata(pdev->dev.parent);
 	gpio->gp = reference_gp;
 	if (pdata && pdata->gpio_base)
 		gpio->gp.base = pdata->gpio_base;
-- 
1.7.4.1




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

* Re: [PATCH] gpio: da9052: remove a redundant assignment for gpio->da9052
  2011-07-11  0:53 [PATCH] gpio: da9052: remove a redundant assignment for gpio->da9052 Axel Lin
@ 2011-07-15  2:53 ` Grant Likely
  0 siblings, 0 replies; 2+ messages in thread
From: Grant Likely @ 2011-07-15  2:53 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, David Dajun Chen

On Mon, Jul 11, 2011 at 08:53:38AM +0800, Axel Lin wrote:
> We just set it twice in da9052_gpio_probe.
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Applied, thanks.

g.

> ---
>  drivers/gpio/gpio-da9052.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/gpio/gpio-da9052.c b/drivers/gpio/gpio-da9052.c
> index c23761f..038f5eb 100644
> --- a/drivers/gpio/gpio-da9052.c
> +++ b/drivers/gpio/gpio-da9052.c
> @@ -219,7 +219,6 @@ static int __devinit da9052_gpio_probe(struct platform_device *pdev)
>  	gpio->da9052 = dev_get_drvdata(pdev->dev.parent);
>  	pdata = gpio->da9052->dev->platform_data;
>  
> -	gpio->da9052 = dev_get_drvdata(pdev->dev.parent);
>  	gpio->gp = reference_gp;
>  	if (pdata && pdata->gpio_base)
>  		gpio->gp.base = pdata->gpio_base;
> -- 
> 1.7.4.1
> 
> 
> 

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

end of thread, other threads:[~2011-07-15  2:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-11  0:53 [PATCH] gpio: da9052: remove a redundant assignment for gpio->da9052 Axel Lin
2011-07-15  2:53 ` Grant Likely

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.