Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251105
b: refs/heads/master
c: 08f3153
h: refs/heads/master
i:
  251103: 4e6c9cf
v: v3
  • Loading branch information
Julia Lawall authored and Paul Mundt committed May 24, 2011
1 parent ef0b2d0 commit 107a08c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: d2f6b7f7aaa245d6d96f9b3a95fc258f20c9e0a8
refs/heads/master: 08f3153861e3ce8ff28fa82efe50cfb744afee7e
8 changes: 3 additions & 5 deletions trunk/drivers/video/s3c2410fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ static int __devinit s3c24xxfb_probe(struct platform_device *pdev,
goto dealloc_fb;
}

size = (res->end - res->start) + 1;
size = resource_size(res);
info->mem = request_mem_region(res->start, size, pdev->name);
if (info->mem == NULL) {
dev_err(&pdev->dev, "failed to get memory region\n");
Expand Down Expand Up @@ -997,8 +997,7 @@ static int __devinit s3c24xxfb_probe(struct platform_device *pdev,
release_regs:
iounmap(info->io);
release_mem:
release_resource(info->mem);
kfree(info->mem);
release_mem_region(res->start, size);
dealloc_fb:
platform_set_drvdata(pdev, NULL);
framebuffer_release(fbinfo);
Expand Down Expand Up @@ -1044,8 +1043,7 @@ static int __devexit s3c2410fb_remove(struct platform_device *pdev)

iounmap(info->io);

release_resource(info->mem);
kfree(info->mem);
release_mem_region(info->mem->start, resource_size(info->mem));

platform_set_drvdata(pdev, NULL);
framebuffer_release(fbinfo);
Expand Down

0 comments on commit 107a08c

Please sign in to comment.