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/leo.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/leo.c')
-rw-r--r-- | drivers/video/leo.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/video/leo.c b/drivers/video/leo.c index b599e5e36ced..9e946e2c1da9 100644 --- a/drivers/video/leo.c +++ b/drivers/video/leo.c | |||
@@ -547,8 +547,7 @@ static void leo_unmap_regs(struct platform_device *op, struct fb_info *info, | |||
547 | of_iounmap(&op->resource[0], info->screen_base, 0x800000); | 547 | of_iounmap(&op->resource[0], info->screen_base, 0x800000); |
548 | } | 548 | } |
549 | 549 | ||
550 | static int __devinit leo_probe(struct platform_device *op, | 550 | static int __devinit leo_probe(struct platform_device *op) |
551 | const struct of_device_id *match) | ||
552 | { | 551 | { |
553 | struct device_node *dp = op->dev.of_node; | 552 | struct device_node *dp = op->dev.of_node; |
554 | struct fb_info *info; | 553 | struct fb_info *info; |
@@ -662,7 +661,7 @@ static const struct of_device_id leo_match[] = { | |||
662 | }; | 661 | }; |
663 | MODULE_DEVICE_TABLE(of, leo_match); | 662 | MODULE_DEVICE_TABLE(of, leo_match); |
664 | 663 | ||
665 | static struct of_platform_driver leo_driver = { | 664 | static struct platform_driver leo_driver = { |
666 | .driver = { | 665 | .driver = { |
667 | .name = "leo", | 666 | .name = "leo", |
668 | .owner = THIS_MODULE, | 667 | .owner = THIS_MODULE, |
@@ -677,12 +676,12 @@ static int __init leo_init(void) | |||
677 | if (fb_get_options("leofb", NULL)) | 676 | if (fb_get_options("leofb", NULL)) |
678 | return -ENODEV; | 677 | return -ENODEV; |
679 | 678 | ||
680 | return of_register_platform_driver(&leo_driver); | 679 | return platform_driver_register(&leo_driver); |
681 | } | 680 | } |
682 | 681 | ||
683 | static void __exit leo_exit(void) | 682 | static void __exit leo_exit(void) |
684 | { | 683 | { |
685 | of_unregister_platform_driver(&leo_driver); | 684 | platform_driver_unregister(&leo_driver); |
686 | } | 685 | } |
687 | 686 | ||
688 | module_init(leo_init); | 687 | module_init(leo_init); |