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/platinumfb.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/platinumfb.c')
-rw-r--r-- | drivers/video/platinumfb.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/video/platinumfb.c b/drivers/video/platinumfb.c index a50e1977b316..ef532d9d3c99 100644 --- a/drivers/video/platinumfb.c +++ b/drivers/video/platinumfb.c | |||
@@ -533,8 +533,7 @@ static int __init platinumfb_setup(char *options) | |||
533 | #define invalidate_cache(addr) | 533 | #define invalidate_cache(addr) |
534 | #endif | 534 | #endif |
535 | 535 | ||
536 | static int __devinit platinumfb_probe(struct platform_device* odev, | 536 | static int __devinit platinumfb_probe(struct platform_device* odev) |
537 | const struct of_device_id *match) | ||
538 | { | 537 | { |
539 | struct device_node *dp = odev->dev.of_node; | 538 | struct device_node *dp = odev->dev.of_node; |
540 | struct fb_info *info; | 539 | struct fb_info *info; |
@@ -677,7 +676,7 @@ static struct of_device_id platinumfb_match[] = | |||
677 | {}, | 676 | {}, |
678 | }; | 677 | }; |
679 | 678 | ||
680 | static struct of_platform_driver platinum_driver = | 679 | static struct platform_driver platinum_driver = |
681 | { | 680 | { |
682 | .driver = { | 681 | .driver = { |
683 | .name = "platinumfb", | 682 | .name = "platinumfb", |
@@ -697,14 +696,14 @@ static int __init platinumfb_init(void) | |||
697 | return -ENODEV; | 696 | return -ENODEV; |
698 | platinumfb_setup(option); | 697 | platinumfb_setup(option); |
699 | #endif | 698 | #endif |
700 | of_register_platform_driver(&platinum_driver); | 699 | platform_driver_register(&platinum_driver); |
701 | 700 | ||
702 | return 0; | 701 | return 0; |
703 | } | 702 | } |
704 | 703 | ||
705 | static void __exit platinumfb_exit(void) | 704 | static void __exit platinumfb_exit(void) |
706 | { | 705 | { |
707 | of_unregister_platform_driver(&platinum_driver); | 706 | platform_driver_unregister(&platinum_driver); |
708 | } | 707 | } |
709 | 708 | ||
710 | MODULE_LICENSE("GPL"); | 709 | MODULE_LICENSE("GPL"); |