Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189556
b: refs/heads/master
c: fc95c6d
h: refs/heads/master
v: v3
  • Loading branch information
Jan Beulich authored and Linus Torvalds committed Apr 7, 2010
1 parent c7b3e52 commit 218495c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 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: 530cd330dc3865e3107304a6e84fdc332aa72f7d
refs/heads/master: fc95c6d9b4433525ed9484089b6e092f3516a92b
26 changes: 13 additions & 13 deletions trunk/drivers/video/vesafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static int __init vesafb_setup(char *options)
return 0;
}

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

static struct platform_driver vesafb_driver = {
.probe = vesafb_probe,
.driver = {
.name = "vesafb",
},
Expand All @@ -492,20 +491,21 @@ static int __init vesafb_init(void)
/* ignore error return of fb_get_options */
fb_get_options("vesafb", &option);
vesafb_setup(option);
ret = platform_driver_register(&vesafb_driver);

if (!ret) {
vesafb_device = platform_device_alloc("vesafb", 0);
vesafb_device = platform_device_alloc("vesafb", 0);
if (!vesafb_device)
return -ENOMEM;

if (vesafb_device)
ret = platform_device_add(vesafb_device);
else
ret = -ENOMEM;
ret = platform_device_add(vesafb_device);
if (!ret) {
ret = platform_driver_probe(&vesafb_driver, vesafb_probe);
if (ret)
platform_device_del(vesafb_device);
}

if (ret) {
platform_device_put(vesafb_device);
platform_driver_unregister(&vesafb_driver);
}
if (ret) {
platform_device_put(vesafb_device);
vesafb_device = NULL;
}

return ret;
Expand Down

0 comments on commit 218495c

Please sign in to comment.