projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
of/device: Replace struct of_device with struct platform_device
[deliverable/linux.git]
/
drivers
/
video
/
cg3.c
diff --git
a/drivers/video/cg3.c
b/drivers/video/cg3.c
index 558d73a948a0d836c73ea20c26440229738ba581..09c0c3c42482ba114e459de82dbe7d2ec8e591f0 100644
(file)
--- a/
drivers/video/cg3.c
+++ b/
drivers/video/cg3.c
@@
-346,7
+346,7
@@
static int __devinit cg3_do_default_mode(struct cg3_par *par)
return 0;
}
return 0;
}
-static int __devinit cg3_probe(struct
of
_device *op,
+static int __devinit cg3_probe(struct
platform
_device *op,
const struct of_device_id *match)
{
struct device_node *dp = op->dev.of_node;
const struct of_device_id *match)
{
struct device_node *dp = op->dev.of_node;
@@
-433,7
+433,7
@@
out_err:
return err;
}
return err;
}
-static int __devexit cg3_remove(struct
of
_device *op)
+static int __devexit cg3_remove(struct
platform
_device *op)
{
struct fb_info *info = dev_get_drvdata(&op->dev);
struct cg3_par *par = info->par;
{
struct fb_info *info = dev_get_drvdata(&op->dev);
struct cg3_par *par = info->par;
@@
-477,12
+477,12
@@
static int __init cg3_init(void)
if (fb_get_options("cg3fb", NULL))
return -ENODEV;
if (fb_get_options("cg3fb", NULL))
return -ENODEV;
- return of_register_
driver(&cg3_driver, &of_bus_type
);
+ return of_register_
platform_driver(&cg3_driver
);
}
static void __exit cg3_exit(void)
{
}
static void __exit cg3_exit(void)
{
- of_unregister_driver(&cg3_driver);
+ of_unregister_
platform_
driver(&cg3_driver);
}
module_init(cg3_init);
}
module_init(cg3_init);
This page took
0.027177 seconds
and
5
git commands to generate.