Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105540
b: refs/heads/master
c: b604838
h: refs/heads/master
v: v3
  • Loading branch information
Frans Pop authored and Linus Torvalds committed Jul 24, 2008
1 parent ab39e7c commit 17f36c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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: cfb4f5d1750e05f43902197713c50c29e7dfbc99
refs/heads/master: b604838ac6d233fd6bffc0e758a818133a01ff22
14 changes: 12 additions & 2 deletions trunk/drivers/video/vfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,19 +443,29 @@ static int vfb_mmap(struct fb_info *info,
}

#ifndef MODULE
/*
* The virtual framebuffer driver is only enabled if explicitly
* requested by passing 'video=vfb:' (or any actual options).
*/
static int __init vfb_setup(char *options)
{
char *this_opt;

vfb_enable = 0;

if (!options)
return 1;

vfb_enable = 1;

if (!options || !*options)
if (!*options)
return 1;

while ((this_opt = strsep(&options, ",")) != NULL) {
if (!*this_opt)
continue;
if (!strncmp(this_opt, "disable", 7))
/* Test disable for backwards compatibility */
if (!strcmp(this_opt, "disable"))
vfb_enable = 0;
}
return 1;
Expand Down

0 comments on commit 17f36c5

Please sign in to comment.