Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60919
b: refs/heads/master
c: b309c05
h: refs/heads/master
i:
  60917: 0d92aae
  60915: fb70302
  60911: 9036c86
v: v3
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jul 17, 2007
1 parent e5977e1 commit a53ec9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 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: a58d67ce7d648f3a2512d6d044b5eab0c6f71253
refs/heads/master: b309c050cd8a705229085bff790ad532b3cdf819
29 changes: 2 additions & 27 deletions trunk/drivers/video/pm3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,6 @@ static void pm3fb_write_mode(struct fb_info *info)
/*
* hardware independent functions
*/
int pm3fb_init(void);

static int pm3fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
{
u32 lpitch;
Expand Down Expand Up @@ -1170,35 +1168,12 @@ static struct pci_driver pm3fb_driver = {

MODULE_DEVICE_TABLE(pci, pm3fb_id_table);

#ifndef MODULE
/*
* Setup
*/

/*
* Only necessary if your driver takes special options,
* otherwise we fall back on the generic fb_setup().
*/
static int __init pm3fb_setup(char *options)
static int __init pm3fb_init(void)
{
/* Parse user speficied options (`video=pm3fb:') */
return 0;
}
#endif /* MODULE */

int __init pm3fb_init(void)
{
/*
* For kernel boot options (in 'video=pm3fb:<options>' format)
*/
#ifndef MODULE
char *option = NULL;

if (fb_get_options("pm3fb", &option))
if (fb_get_options("pm3fb", NULL))
return -ENODEV;
pm3fb_setup(option);
#endif

return pci_register_driver(&pm3fb_driver);
}

Expand Down

0 comments on commit a53ec9d

Please sign in to comment.