Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139278
b: refs/heads/master
c: e98d9b4
h: refs/heads/master
v: v3
  • Loading branch information
Andres Salomon authored and Linus Torvalds committed Apr 1, 2009
1 parent f97de8d commit cdcfa48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 327fc8752a3c08fc7dc7d382883e65aad2f03bde
refs/heads/master: e98d9b407c248ba1419bed0823488d3cc71a2c31
5 changes: 4 additions & 1 deletion trunk/drivers/video/68328fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,11 @@ int __init mc68x328fb_init(void)
fb_info.pseudo_palette = &mc68x328fb_pseudo_palette;
fb_info.flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;

fb_alloc_cmap(&fb_info.cmap, 256, 0);
if (fb_alloc_cmap(&fb_info.cmap, 256, 0))
return -ENOMEM;

if (register_framebuffer(&fb_info) < 0) {
fb_dealloc_cmap(&fb_info.cmap);
return -EINVAL;
}

Expand All @@ -494,6 +496,7 @@ module_init(mc68x328fb_init);
static void __exit mc68x328fb_cleanup(void)
{
unregister_framebuffer(&fb_info);
fb_dealloc_cmap(&fb_info.cmap);
}

module_exit(mc68x328fb_cleanup);
Expand Down

0 comments on commit cdcfa48

Please sign in to comment.