Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253135
b: refs/heads/master
c: bb8b266
h: refs/heads/master
i:
  253133: 1942019
  253131: fff6c54
  253127: f5dbb6e
  253119: 7234cf9
v: v3
  • Loading branch information
Andy Lutomirski authored and Paul Mundt committed Jun 2, 2011
1 parent 07e28a0 commit ef71465
Show file tree
Hide file tree
Showing 2 changed files with 15 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: da0241f12bf785f74e57ad6d67abdf269216f76b
refs/heads/master: bb8b26627267a82c49f47fc52a0785f079a7b063
21 changes: 14 additions & 7 deletions trunk/drivers/video/efifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ static int __init efifb_setup(char *options)
return 0;
}

static int __devinit efifb_probe(struct platform_device *dev)
static int __init efifb_probe(struct platform_device *dev)
{
struct fb_info *info;
int err;
Expand Down Expand Up @@ -500,7 +500,6 @@ static int __devinit efifb_probe(struct platform_device *dev)
}

static struct platform_driver efifb_driver = {
.probe = efifb_probe,
.driver = {
.name = "efifb",
},
Expand Down Expand Up @@ -531,13 +530,21 @@ static int __init efifb_init(void)
if (!screen_info.lfb_linelength)
return -ENODEV;

ret = platform_driver_register(&efifb_driver);
ret = platform_device_register(&efifb_device);
if (ret)
return ret;

if (!ret) {
ret = platform_device_register(&efifb_device);
if (ret)
platform_driver_unregister(&efifb_driver);
/*
* This is not just an optimization. We will interfere
* with a real driver if we get reprobed, so don't allow
* it.
*/
ret = platform_driver_probe(&efifb_driver, efifb_probe);
if (ret) {
platform_device_unregister(&efifb_driver);
return ret;
}

return ret;
}
module_init(efifb_init);
Expand Down

0 comments on commit ef71465

Please sign in to comment.