Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30289
b: refs/heads/master
c: 103edf0
h: refs/heads/master
i:
  30287: 67ecc91
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Jun 26, 2006
1 parent 6b29ecd commit 682dc11
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 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: 673681c1b575a73159606ae3c4498de851596489
refs/heads/master: 103edf024b98ff6a1feef9c43886f39b00c5753d
17 changes: 12 additions & 5 deletions trunk/drivers/video/vesafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,7 @@ static struct platform_driver vesafb_driver = {
},
};

static struct platform_device vesafb_device = {
.name = "vesafb",
};
static struct platform_device *vesafb_device;

static int __init vesafb_init(void)
{
Expand All @@ -475,10 +473,19 @@ static int __init vesafb_init(void)
ret = platform_driver_register(&vesafb_driver);

if (!ret) {
ret = platform_device_register(&vesafb_device);
if (ret)
vesafb_device = platform_device_alloc("vesafb", 0);

if (vesafb_device)
ret = platform_device_add(vesafb_device);
else
ret = -ENOMEM;

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

return ret;
}
module_init(vesafb_init);
Expand Down

0 comments on commit 682dc11

Please sign in to comment.