diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-02-22 21:07:43 -0700 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-02-28 13:22:45 -0700 |
commit | 28541d0f1894cd0c8f4a90c6e006c88d38ad3ac0 (patch) | |
tree | 9d735279860b9f5e499cdf8bd67bf790c92dbebd /drivers/video/sunxvr1000.c | |
parent | 74888760d40b3ac9054f9c5fa07b566c0676ba2d (diff) | |
download | linux-3.10-28541d0f1894cd0c8f4a90c6e006c88d38ad3ac0.tar.gz linux-3.10-28541d0f1894cd0c8f4a90c6e006c88d38ad3ac0.tar.bz2 linux-3.10-28541d0f1894cd0c8f4a90c6e006c88d38ad3ac0.zip |
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 5dbe06af222..b7f27acaf81 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) return 0; } -static int __devinit gfb_probe(struct platform_device *op, - const struct of_device_id *match) +static int __devinit gfb_probe(struct platform_device *op) { struct device_node *dp = op->dev.of_node; struct fb_info *info; @@ -198,7 +197,7 @@ static const struct of_device_id gfb_match[] = { }; MODULE_DEVICE_TABLE(of, ffb_match); -static struct of_platform_driver gfb_driver = { +static struct platform_driver gfb_driver = { .probe = gfb_probe, .remove = __devexit_p(gfb_remove), .driver = { @@ -213,12 +212,12 @@ static int __init gfb_init(void) if (fb_get_options("gfb", NULL)) return -ENODEV; - return of_register_platform_driver(&gfb_driver); + return platform_driver_register(&gfb_driver); } static void __exit gfb_exit(void) { - of_unregister_platform_driver(&gfb_driver); + platform_driver_unregister(&gfb_driver); } module_init(gfb_init); |