diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-02-22 23:07:43 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-02-28 15:22:45 -0500 |
commit | 28541d0f1894cd0c8f4a90c6e006c88d38ad3ac0 (patch) | |
tree | 9d735279860b9f5e499cdf8bd67bf790c92dbebd /drivers/video/sunxvr1000.c | |
parent | 74888760d40b3ac9054f9c5fa07b566c0676ba2d (diff) |
dt/video: Eliminate users of of_platform_{,un}register_driver
Get rid of users of of_platform_driver in drivers/video. The
of_platform_{,un}register_driver functions are going away, so the
users need to be converted to using the platform_bus_type directly.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/video/sunxvr1000.c')
-rw-r--r-- | drivers/video/sunxvr1000.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/video/sunxvr1000.c b/drivers/video/sunxvr1000.c index 5dbe06af2226..b7f27acaf817 100644 --- a/drivers/video/sunxvr1000.c +++ b/drivers/video/sunxvr1000.c | |||
@@ -111,8 +111,7 @@ static int __devinit gfb_set_fbinfo(struct gfb_info *gp) | |||
111 | return 0; | 111 | return 0; |
112 | } | 112 | } |
113 | 113 | ||
114 | static int __devinit gfb_probe(struct platform_device *op, | 114 | static int __devinit gfb_probe(struct platform_device *op) |
115 | const struct of_device_id *match) | ||
116 | { | 115 | { |
117 | struct device_node *dp = op->dev.of_node; | 116 | struct device_node *dp = op->dev.of_node; |
118 | struct fb_info *info; | 117 | struct fb_info *info; |
@@ -198,7 +197,7 @@ static const struct of_device_id gfb_match[] = { | |||
198 | }; | 197 | }; |
199 | MODULE_DEVICE_TABLE(of, ffb_match); | 198 | MODULE_DEVICE_TABLE(of, ffb_match); |
200 | 199 | ||
201 | static struct of_platform_driver gfb_driver = { | 200 | static struct platform_driver gfb_driver = { |
202 | .probe = gfb_probe, | 201 | .probe = gfb_probe, |
203 | .remove = __devexit_p(gfb_remove), | 202 | .remove = __devexit_p(gfb_remove), |
204 | .driver = { | 203 | .driver = { |
@@ -213,12 +212,12 @@ static int __init gfb_init(void) | |||
213 | if (fb_get_options("gfb", NULL)) | 212 | if (fb_get_options("gfb", NULL)) |
214 | return -ENODEV; | 213 | return -ENODEV; |
215 | 214 | ||
216 | return of_register_platform_driver(&gfb_driver); | 215 | return platform_driver_register(&gfb_driver); |
217 | } | 216 | } |
218 | 217 | ||
219 | static void __exit gfb_exit(void) | 218 | static void __exit gfb_exit(void) |
220 | { | 219 | { |
221 | of_unregister_platform_driver(&gfb_driver); | 220 | platform_driver_unregister(&gfb_driver); |
222 | } | 221 | } |
223 | 222 | ||
224 | module_init(gfb_init); | 223 | module_init(gfb_init); |