Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251960
b: refs/heads/master
c: 4ddb8ae
h: refs/heads/master
v: v3
  • Loading branch information
Jamie Iles authored and Grant Likely committed May 20, 2011
1 parent a2ffabf commit c1badf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8467afec5f8137fd0c13121f8a38c99c54c913f6
refs/heads/master: 4ddb8ae217ad2aae888d00d97c5160f677dd38f4
4 changes: 2 additions & 2 deletions trunk/drivers/gpio/basic_mmio_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);
}
Expand Down

0 comments on commit c1badf1

Please sign in to comment.