Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30288
b: refs/heads/master
c: 673681c
h: refs/heads/master
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Jun 26, 2006
1 parent 67ecc91 commit 6b29ecd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 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: 7914cb27eebed4868bac01a28f550ea966fb422e
refs/heads/master: 673681c1b575a73159606ae3c4498de851596489
29 changes: 14 additions & 15 deletions trunk/drivers/video/epson1355fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,11 +605,6 @@ static void clearfb16(struct fb_info *info)
fb_writeb(0, dst);
}

static void epson1355fb_platform_release(struct device *device)
{
dev_err(device, "This driver is broken, please bug the authors so they will fix it.\n");
}

static int epson1355fb_remove(struct platform_device *dev)
{
struct fb_info *info = platform_get_drvdata(dev);
Expand Down Expand Up @@ -733,13 +728,7 @@ static struct platform_driver epson1355fb_driver = {
},
};

static struct platform_device epson1355fb_device = {
.name = "epson1355fb",
.id = 0,
.dev = {
.release = epson1355fb_platform_release,
}
};
static struct platform_device *epson1355fb_device;

int __init epson1355fb_init(void)
{
Expand All @@ -749,11 +738,21 @@ int __init epson1355fb_init(void)
return -ENODEV;

ret = platform_driver_register(&epson1355fb_driver);

if (!ret) {
ret = platform_device_register(&epson1355fb_device);
if (ret)
epson1355fb_device = platform_device_alloc("epson1355fb", 0);

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

if (ret) {
platform_device_put(epson1355fb_device);
platform_driver_unregister(&epson1355fb_driver);
}
}

return ret;
}

Expand All @@ -762,7 +761,7 @@ module_init(epson1355fb_init);
#ifdef MODULE
static void __exit epson1355fb_exit(void)
{
platform_device_unregister(&epson1355fb_device);
platform_device_unregister(epson1355fb_device);
platform_driver_unregister(&epson1355fb_driver);
}

Expand Down

0 comments on commit 6b29ecd

Please sign in to comment.