lkml.org 
[lkml]   [2011]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv3 2/7] basic_mmio_gpio: convert to platform_{get,set}_drvdata()
On Mon, Apr 11, 2011 at 12:21:49PM +0100, Jamie Iles wrote:
> Use the platform drvdata helpers rather than working on the struct
> device itself.
>
> Signed-off-by: Jamie Iles <jamie@jamieiles.com>
> Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
> Cc: Grant Likely <grant.likely@secretlab.ca>

Merged, thanks.

g.

> ---
> drivers/gpio/basic_mmio_gpio.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpio/basic_mmio_gpio.c b/drivers/gpio/basic_mmio_gpio.c
> index e935a24..5db5de4 100644
> --- a/drivers/gpio/basic_mmio_gpio.c
> +++ b/drivers/gpio/basic_mmio_gpio.c
> @@ -296,7 +296,7 @@ static int __devinit bgpio_probe(struct platform_device *pdev)
> else
> bgc->gc.base = -1;
>
> - dev_set_drvdata(dev, bgc);
> + platform_set_drvdata(pdev, bgc);
>
> ret = gpiochip_add(&bgc->gc);
> if (ret)
> @@ -307,7 +307,7 @@ static int __devinit bgpio_probe(struct platform_device *pdev)
>
> static int __devexit bgpio_remove(struct platform_device *pdev)
> {
> - struct bgpio_chip *bgc = dev_get_drvdata(&pdev->dev);
> + struct bgpio_chip *bgc = platform_get_drvdata(pdev);
>
> return gpiochip_remove(&bgc->gc);
> }
> --
> 1.7.4.2
>


\
 
 \ /
  Last update: 2011-05-03 21:45    [W:0.276 / U:0.216 seconds]
©2003-2014 Jasper Spaans. Advertise on this site