Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298084
b: refs/heads/master
c: 495c47d
h: refs/heads/master
v: v3
  • Loading branch information
Shiraz Hashim authored and David Woodhouse committed Mar 26, 2012
1 parent 7b75697 commit 16647c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f18dbbb1bfe06ea3995b55c2f533057da9e9294a
refs/heads/master: 495c47d799d93ad688db9db170200eb71525ff45
4 changes: 4 additions & 0 deletions trunk/drivers/mtd/devices/spear_smi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,7 @@ static int __devexit spear_smi_remove(struct platform_device *pdev)
{
struct spear_smi *dev;
struct spear_snor_flash *flash;
struct resource *smi_base;
int ret;
int i, irq;

Expand Down Expand Up @@ -1055,6 +1056,9 @@ static int __devexit spear_smi_remove(struct platform_device *pdev)
clk_put(dev->clk);
iounmap(dev->io_base);
kfree(dev);

smi_base = platform_get_resource(pdev, IORESOURCE_MEM, 0);
release_mem_region(smi_base->start, resource_size(smi_base));
platform_set_drvdata(pdev, NULL);

return 0;
Expand Down

0 comments on commit 16647c0

Please sign in to comment.