Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18138
b: refs/heads/master
c: ed1705a
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jan 12, 2006
1 parent a6f0c11 commit 566c376
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 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: 54a5a6eb5842d68fe0aaa60d50fdea532c19770b
refs/heads/master: ed1705afb93409a3e345d653be9d263984aa5c1b
15 changes: 8 additions & 7 deletions trunk/drivers/video/macfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,18 +609,19 @@ void __init macfb_setup(char *options)
}
}

void __init macfb_init(void)
static int __init macfb_init(void)
{
int video_cmap_len, video_is_nubus = 0;
struct nubus_dev* ndev = NULL;
char *option = NULL;
int err;

if (fb_get_options("macfb", &option))
return -ENODEV;
macfb_setup(option);

if (!MACH_IS_MAC)
return;
return -ENODEV;

/* There can only be one internal video controller anyway so
we're not too worried about this */
Expand Down Expand Up @@ -958,11 +959,11 @@ void __init macfb_init(void)

fb_alloc_cmap(&fb_info.cmap, video_cmap_len, 0);

if (register_framebuffer(&fb_info) < 0)
return;

printk("fb%d: %s frame buffer device\n",
fb_info.node, fb_info.fix.id);
err = register_framebuffer(&fb_info);
if (!err)
printk("fb%d: %s frame buffer device\n",
fb_info.node, fb_info.fix.id);
return err;
}

module_init(macfb_init);
Expand Down

0 comments on commit 566c376

Please sign in to comment.