diff options
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); |