Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201447
b: refs/heads/master
c: f6aa01c
h: refs/heads/master
i:
  201445: 0396070
  201443: 90599be
  201439: e8b18f3
v: v3
  • Loading branch information
Rabin Vincent authored and Russell King committed Jun 16, 2010
1 parent 9f69c72 commit 9d4b1b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 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: 0d2aec9cd356254649fa2aa6bb5fb4d20cfded2c
refs/heads/master: f6aa01c2b8950a29503e93fc8b91f0d64f440c34
18 changes: 0 additions & 18 deletions trunk/arch/arm/plat-nomadik/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,30 +619,12 @@ static int __init nmk_gpio_probe(struct platform_device *dev)
return ret;
}

static int __exit nmk_gpio_remove(struct platform_device *dev)
{
struct nmk_gpio_chip *nmk_chip;
struct resource *res;

res = platform_get_resource(dev, IORESOURCE_MEM, 0);

nmk_chip = platform_get_drvdata(dev);
gpiochip_remove(&nmk_chip->chip);
clk_disable(nmk_chip->clk);
clk_put(nmk_chip->clk);
kfree(nmk_chip);
release_mem_region(res->start, resource_size(res));
return 0;
}


static struct platform_driver nmk_gpio_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "gpio",
},
.probe = nmk_gpio_probe,
.remove = __exit_p(nmk_gpio_remove),
.suspend = NULL, /* to be done */
.resume = NULL,
};
Expand Down

0 comments on commit 9d4b1b1

Please sign in to comment.