aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-03-16 20:28:10 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-16 20:28:10 -0400
commit4c5811bf463b0ef82fabbd1708f8bb2d753aeb18 (patch)
treeff37d31217c3804ca05de21a55a9b5ca1ca818b2 /drivers/video
parentf74b9444192c60603020c61d7915b72893137edc (diff)
parent9f15444fefdb33509132ff5c9be60cb315c44cb2 (diff)
Merge branch 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6
* 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6: (21 commits) tty: serial: altera_jtaguart: Add device tree support tty: serial: altera_uart: Add devicetree support dt: eliminate of_platform_driver shim code dt: Eliminate of_platform_{,un}register_driver dt/serial: Eliminate users of of_platform_{,un}register_driver dt/usb: Eliminate users of of_platform_{,un}register_driver dt/video: Eliminate users of of_platform_{,un}register_driver dt/net: Eliminate users of of_platform_{,un}register_driver dt/sound: Eliminate users of of_platform_{,un}register_driver dt/spi: Eliminate users of of_platform_{,un}register_driver dt: uartlite: merge platform and of_platform driver bindings dt: xilinx_hwicap: merge platform and of_platform driver bindings ipmi: convert OF driver to platform driver leds/leds-gpio: merge platform_driver with of_platform_driver dt/sparc: Eliminate users of of_platform_{,un}register_driver dt/powerpc: Eliminate users of of_platform_{,un}register_driver dt/powerpc: move of_bus_type infrastructure to ibmebus drivercore/dt: add a match table pointer to struct device dt: Typo fix. altera_ps2: Add devicetree support ...
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/bw2.c8
-rw-r--r--drivers/video/cg14.c8
-rw-r--r--drivers/video/cg3.c9
-rw-r--r--drivers/video/cg6.c9
-rw-r--r--drivers/video/ffb.c9
-rw-r--r--drivers/video/fsl-diu-fb.c9
-rw-r--r--drivers/video/leo.c9
-rw-r--r--drivers/video/mb862xx/mb862xxfb.c9
-rw-r--r--drivers/video/p9100.c8
-rw-r--r--drivers/video/platinumfb.c9
-rw-r--r--drivers/video/sunxvr1000.c9
-rw-r--r--drivers/video/tcx.c9
-rw-r--r--drivers/video/xilinxfb.c11
13 files changed, 52 insertions, 64 deletions
diff --git a/drivers/video/bw2.c b/drivers/video/bw2.c
index 4dc13467281d..7ba74cd4be61 100644
--- a/drivers/video/bw2.c
+++ b/drivers/video/bw2.c
@@ -273,7 +273,7 @@ static int __devinit bw2_do_default_mode(struct bw2_par *par,
273 return 0; 273 return 0;
274} 274}
275 275
276static int __devinit bw2_probe(struct platform_device *op, const struct of_device_id *match) 276static int __devinit bw2_probe(struct platform_device *op)
277{ 277{
278 struct device_node *dp = op->dev.of_node; 278 struct device_node *dp = op->dev.of_node;
279 struct fb_info *info; 279 struct fb_info *info;
@@ -375,7 +375,7 @@ static const struct of_device_id bw2_match[] = {
375}; 375};
376MODULE_DEVICE_TABLE(of, bw2_match); 376MODULE_DEVICE_TABLE(of, bw2_match);
377 377
378static struct of_platform_driver bw2_driver = { 378static struct platform_driver bw2_driver = {
379 .driver = { 379 .driver = {
380 .name = "bw2", 380 .name = "bw2",
381 .owner = THIS_MODULE, 381 .owner = THIS_MODULE,
@@ -390,12 +390,12 @@ static int __init bw2_init(void)
390 if (fb_get_options("bw2fb", NULL)) 390 if (fb_get_options("bw2fb", NULL))
391 return -ENODEV; 391 return -ENODEV;
392 392
393 return of_register_platform_driver(&bw2_driver); 393 return platform_driver_register(&bw2_driver);
394} 394}
395 395
396static void __exit bw2_exit(void) 396static void __exit bw2_exit(void)
397{ 397{
398 of_unregister_platform_driver(&bw2_driver); 398 platform_driver_unregister(&bw2_driver);
399} 399}
400 400
401module_init(bw2_init); 401module_init(bw2_init);
diff --git a/drivers/video/cg14.c b/drivers/video/cg14.c
index 24249535ac86..e2c85b0db632 100644
--- a/drivers/video/cg14.c
+++ b/drivers/video/cg14.c
@@ -463,7 +463,7 @@ static void cg14_unmap_regs(struct platform_device *op, struct fb_info *info,
463 info->screen_base, info->fix.smem_len); 463 info->screen_base, info->fix.smem_len);
464} 464}
465 465
466static int __devinit cg14_probe(struct platform_device *op, const struct of_device_id *match) 466static int __devinit cg14_probe(struct platform_device *op)
467{ 467{
468 struct device_node *dp = op->dev.of_node; 468 struct device_node *dp = op->dev.of_node;
469 struct fb_info *info; 469 struct fb_info *info;
@@ -595,7 +595,7 @@ static const struct of_device_id cg14_match[] = {
595}; 595};
596MODULE_DEVICE_TABLE(of, cg14_match); 596MODULE_DEVICE_TABLE(of, cg14_match);
597 597
598static struct of_platform_driver cg14_driver = { 598static struct platform_driver cg14_driver = {
599 .driver = { 599 .driver = {
600 .name = "cg14", 600 .name = "cg14",
601 .owner = THIS_MODULE, 601 .owner = THIS_MODULE,
@@ -610,12 +610,12 @@ static int __init cg14_init(void)
610 if (fb_get_options("cg14fb", NULL)) 610 if (fb_get_options("cg14fb", NULL))
611 return -ENODEV; 611 return -ENODEV;
612 612
613 return of_register_platform_driver(&cg14_driver); 613 return platform_driver_register(&cg14_driver);
614} 614}
615 615
616static void __exit cg14_exit(void) 616static void __exit cg14_exit(void)
617{ 617{
618 of_unregister_platform_driver(&cg14_driver); 618 platform_driver_unregister(&cg14_driver);
619} 619}
620 620
621module_init(cg14_init); 621module_init(cg14_init);
diff --git a/drivers/video/cg3.c b/drivers/video/cg3.c
index 09c0c3c42482..f927a7b1a8d4 100644
--- a/drivers/video/cg3.c
+++ b/drivers/video/cg3.c
@@ -346,8 +346,7 @@ static int __devinit cg3_do_default_mode(struct cg3_par *par)
346 return 0; 346 return 0;
347} 347}
348 348
349static int __devinit cg3_probe(struct platform_device *op, 349static int __devinit cg3_probe(struct platform_device *op)
350 const struct of_device_id *match)
351{ 350{
352 struct device_node *dp = op->dev.of_node; 351 struct device_node *dp = op->dev.of_node;
353 struct fb_info *info; 352 struct fb_info *info;
@@ -462,7 +461,7 @@ static const struct of_device_id cg3_match[] = {
462}; 461};
463MODULE_DEVICE_TABLE(of, cg3_match); 462MODULE_DEVICE_TABLE(of, cg3_match);
464 463
465static struct of_platform_driver cg3_driver = { 464static struct platform_driver cg3_driver = {
466 .driver = { 465 .driver = {
467 .name = "cg3", 466 .name = "cg3",
468 .owner = THIS_MODULE, 467 .owner = THIS_MODULE,
@@ -477,12 +476,12 @@ static int __init cg3_init(void)
477 if (fb_get_options("cg3fb", NULL)) 476 if (fb_get_options("cg3fb", NULL))
478 return -ENODEV; 477 return -ENODEV;
479 478
480 return of_register_platform_driver(&cg3_driver); 479 return platform_driver_register(&cg3_driver);
481} 480}
482 481
483static void __exit cg3_exit(void) 482static void __exit cg3_exit(void)
484{ 483{
485 of_unregister_platform_driver(&cg3_driver); 484 platform_driver_unregister(&cg3_driver);
486} 485}
487 486
488module_init(cg3_init); 487module_init(cg3_init);
diff --git a/drivers/video/cg6.c b/drivers/video/cg6.c
index 2b5a97058b08..4ffad90bde42 100644
--- a/drivers/video/cg6.c
+++ b/drivers/video/cg6.c
@@ -737,8 +737,7 @@ static void cg6_unmap_regs(struct platform_device *op, struct fb_info *info,
737 info->fix.smem_len); 737 info->fix.smem_len);
738} 738}
739 739
740static int __devinit cg6_probe(struct platform_device *op, 740static int __devinit cg6_probe(struct platform_device *op)
741 const struct of_device_id *match)
742{ 741{
743 struct device_node *dp = op->dev.of_node; 742 struct device_node *dp = op->dev.of_node;
744 struct fb_info *info; 743 struct fb_info *info;
@@ -855,7 +854,7 @@ static const struct of_device_id cg6_match[] = {
855}; 854};
856MODULE_DEVICE_TABLE(of, cg6_match); 855MODULE_DEVICE_TABLE(of, cg6_match);
857 856
858static struct of_platform_driver cg6_driver = { 857static struct platform_driver cg6_driver = {
859 .driver = { 858 .driver = {
860 .name = "cg6", 859 .name = "cg6",
861 .owner = THIS_MODULE, 860 .owner = THIS_MODULE,
@@ -870,12 +869,12 @@ static int __init cg6_init(void)
870 if (fb_get_options("cg6fb", NULL)) 869 if (fb_get_options("cg6fb", NULL))
871 return -ENODEV; 870 return -ENODEV;
872 871
873 return of_register_platform_driver(&cg6_driver); 872 return platform_driver_register(&cg6_driver);
874} 873}
875 874
876static void __exit cg6_exit(void) 875static void __exit cg6_exit(void)
877{ 876{
878 of_unregister_platform_driver(&cg6_driver); 877 platform_driver_unregister(&cg6_driver);
879} 878}
880 879
881module_init(cg6_init); 880module_init(cg6_init);
diff --git a/drivers/video/ffb.c b/drivers/video/ffb.c
index 6739b2af3bc0..910c5e6f6702 100644
--- a/drivers/video/ffb.c
+++ b/drivers/video/ffb.c
@@ -893,8 +893,7 @@ static void ffb_init_fix(struct fb_info *info)
893 info->fix.accel = FB_ACCEL_SUN_CREATOR; 893 info->fix.accel = FB_ACCEL_SUN_CREATOR;
894} 894}
895 895
896static int __devinit ffb_probe(struct platform_device *op, 896static int __devinit ffb_probe(struct platform_device *op)
897 const struct of_device_id *match)
898{ 897{
899 struct device_node *dp = op->dev.of_node; 898 struct device_node *dp = op->dev.of_node;
900 struct ffb_fbc __iomem *fbc; 899 struct ffb_fbc __iomem *fbc;
@@ -1052,7 +1051,7 @@ static const struct of_device_id ffb_match[] = {
1052}; 1051};
1053MODULE_DEVICE_TABLE(of, ffb_match); 1052MODULE_DEVICE_TABLE(of, ffb_match);
1054 1053
1055static struct of_platform_driver ffb_driver = { 1054static struct platform_driver ffb_driver = {
1056 .driver = { 1055 .driver = {
1057 .name = "ffb", 1056 .name = "ffb",
1058 .owner = THIS_MODULE, 1057 .owner = THIS_MODULE,
@@ -1067,12 +1066,12 @@ static int __init ffb_init(void)
1067 if (fb_get_options("ffb", NULL)) 1066 if (fb_get_options("ffb", NULL))
1068 return -ENODEV; 1067 return -ENODEV;
1069 1068
1070 return of_register_platform_driver(&ffb_driver); 1069 return platform_driver_register(&ffb_driver);
1071} 1070}
1072 1071
1073static void __exit ffb_exit(void) 1072static void __exit ffb_exit(void)
1074{ 1073{
1075 of_unregister_platform_driver(&ffb_driver); 1074 platform_driver_unregister(&ffb_driver);
1076} 1075}
1077 1076
1078module_init(ffb_init); 1077module_init(ffb_init);
diff --git a/drivers/video/fsl-diu-fb.c b/drivers/video/fsl-diu-fb.c
index 8bbbf08fa3ce..9048f87fa8c1 100644
--- a/drivers/video/fsl-diu-fb.c
+++ b/drivers/video/fsl-diu-fb.c
@@ -1487,8 +1487,7 @@ static ssize_t show_monitor(struct device *device,
1487 return diu_ops.show_monitor_port(machine_data->monitor_port, buf); 1487 return diu_ops.show_monitor_port(machine_data->monitor_port, buf);
1488} 1488}
1489 1489
1490static int __devinit fsl_diu_probe(struct platform_device *ofdev, 1490static int __devinit fsl_diu_probe(struct platform_device *ofdev)
1491 const struct of_device_id *match)
1492{ 1491{
1493 struct device_node *np = ofdev->dev.of_node; 1492 struct device_node *np = ofdev->dev.of_node;
1494 struct mfb_info *mfbi; 1493 struct mfb_info *mfbi;
@@ -1735,7 +1734,7 @@ static struct of_device_id fsl_diu_match[] = {
1735}; 1734};
1736MODULE_DEVICE_TABLE(of, fsl_diu_match); 1735MODULE_DEVICE_TABLE(of, fsl_diu_match);
1737 1736
1738static struct of_platform_driver fsl_diu_driver = { 1737static struct platform_driver fsl_diu_driver = {
1739 .driver = { 1738 .driver = {
1740 .name = "fsl_diu", 1739 .name = "fsl_diu",
1741 .owner = THIS_MODULE, 1740 .owner = THIS_MODULE,
@@ -1797,7 +1796,7 @@ static int __init fsl_diu_init(void)
1797 if (!coherence_data) 1796 if (!coherence_data)
1798 return -ENOMEM; 1797 return -ENOMEM;
1799#endif 1798#endif
1800 ret = of_register_platform_driver(&fsl_diu_driver); 1799 ret = platform_driver_register(&fsl_diu_driver);
1801 if (ret) { 1800 if (ret) {
1802 printk(KERN_ERR 1801 printk(KERN_ERR
1803 "fsl-diu: failed to register platform driver\n"); 1802 "fsl-diu: failed to register platform driver\n");
@@ -1811,7 +1810,7 @@ static int __init fsl_diu_init(void)
1811 1810
1812static void __exit fsl_diu_exit(void) 1811static void __exit fsl_diu_exit(void)
1813{ 1812{
1814 of_unregister_platform_driver(&fsl_diu_driver); 1813 platform_driver_unregister(&fsl_diu_driver);
1815#if defined(CONFIG_NOT_COHERENT_CACHE) 1814#if defined(CONFIG_NOT_COHERENT_CACHE)
1816 vfree(coherence_data); 1815 vfree(coherence_data);
1817#endif 1816#endif
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
550static int __devinit leo_probe(struct platform_device *op, 550static 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};
663MODULE_DEVICE_TABLE(of, leo_match); 662MODULE_DEVICE_TABLE(of, leo_match);
664 663
665static struct of_platform_driver leo_driver = { 664static 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
683static void __exit leo_exit(void) 682static void __exit leo_exit(void)
684{ 683{
685 of_unregister_platform_driver(&leo_driver); 684 platform_driver_unregister(&leo_driver);
686} 685}
687 686
688module_init(leo_init); 687module_init(leo_init);
diff --git a/drivers/video/mb862xx/mb862xxfb.c b/drivers/video/mb862xx/mb862xxfb.c
index b1c4374cf940..c76e663a6cd4 100644
--- a/drivers/video/mb862xx/mb862xxfb.c
+++ b/drivers/video/mb862xx/mb862xxfb.c
@@ -550,8 +550,7 @@ static int mb862xx_gdc_init(struct mb862xxfb_par *par)
550 return 0; 550 return 0;
551} 551}
552 552
553static int __devinit of_platform_mb862xx_probe(struct platform_device *ofdev, 553static int __devinit of_platform_mb862xx_probe(struct platform_device *ofdev)
554 const struct of_device_id *id)
555{ 554{
556 struct device_node *np = ofdev->dev.of_node; 555 struct device_node *np = ofdev->dev.of_node;
557 struct device *dev = &ofdev->dev; 556 struct device *dev = &ofdev->dev;
@@ -717,7 +716,7 @@ static struct of_device_id __devinitdata of_platform_mb862xx_tbl[] = {
717 { /* end */ } 716 { /* end */ }
718}; 717};
719 718
720static struct of_platform_driver of_platform_mb862xxfb_driver = { 719static struct platform_driver of_platform_mb862xxfb_driver = {
721 .driver = { 720 .driver = {
722 .name = DRV_NAME, 721 .name = DRV_NAME,
723 .owner = THIS_MODULE, 722 .owner = THIS_MODULE,
@@ -1038,7 +1037,7 @@ static int __devinit mb862xxfb_init(void)
1038 int ret = -ENODEV; 1037 int ret = -ENODEV;
1039 1038
1040#if defined(CONFIG_FB_MB862XX_LIME) 1039#if defined(CONFIG_FB_MB862XX_LIME)
1041 ret = of_register_platform_driver(&of_platform_mb862xxfb_driver); 1040 ret = platform_driver_register(&of_platform_mb862xxfb_driver);
1042#endif 1041#endif
1043#if defined(CONFIG_FB_MB862XX_PCI_GDC) 1042#if defined(CONFIG_FB_MB862XX_PCI_GDC)
1044 ret = pci_register_driver(&mb862xxfb_pci_driver); 1043 ret = pci_register_driver(&mb862xxfb_pci_driver);
@@ -1049,7 +1048,7 @@ static int __devinit mb862xxfb_init(void)
1049static void __exit mb862xxfb_exit(void) 1048static void __exit mb862xxfb_exit(void)
1050{ 1049{
1051#if defined(CONFIG_FB_MB862XX_LIME) 1050#if defined(CONFIG_FB_MB862XX_LIME)
1052 of_unregister_platform_driver(&of_platform_mb862xxfb_driver); 1051 platform_driver_unregister(&of_platform_mb862xxfb_driver);
1053#endif 1052#endif
1054#if defined(CONFIG_FB_MB862XX_PCI_GDC) 1053#if defined(CONFIG_FB_MB862XX_PCI_GDC)
1055 pci_unregister_driver(&mb862xxfb_pci_driver); 1054 pci_unregister_driver(&mb862xxfb_pci_driver);
diff --git a/drivers/video/p9100.c b/drivers/video/p9100.c
index b6c3fc2db632..d57cc58c5168 100644
--- a/drivers/video/p9100.c
+++ b/drivers/video/p9100.c
@@ -249,7 +249,7 @@ static void p9100_init_fix(struct fb_info *info, int linebytes, struct device_no
249 info->fix.accel = FB_ACCEL_SUN_CGTHREE; 249 info->fix.accel = FB_ACCEL_SUN_CGTHREE;
250} 250}
251 251
252static int __devinit p9100_probe(struct platform_device *op, const struct of_device_id *match) 252static int __devinit p9100_probe(struct platform_device *op)
253{ 253{
254 struct device_node *dp = op->dev.of_node; 254 struct device_node *dp = op->dev.of_node;
255 struct fb_info *info; 255 struct fb_info *info;
@@ -352,7 +352,7 @@ static const struct of_device_id p9100_match[] = {
352}; 352};
353MODULE_DEVICE_TABLE(of, p9100_match); 353MODULE_DEVICE_TABLE(of, p9100_match);
354 354
355static struct of_platform_driver p9100_driver = { 355static struct platform_driver p9100_driver = {
356 .driver = { 356 .driver = {
357 .name = "p9100", 357 .name = "p9100",
358 .owner = THIS_MODULE, 358 .owner = THIS_MODULE,
@@ -367,12 +367,12 @@ static int __init p9100_init(void)
367 if (fb_get_options("p9100fb", NULL)) 367 if (fb_get_options("p9100fb", NULL))
368 return -ENODEV; 368 return -ENODEV;
369 369
370 return of_register_platform_driver(&p9100_driver); 370 return platform_driver_register(&p9100_driver);
371} 371}
372 372
373static void __exit p9100_exit(void) 373static void __exit p9100_exit(void)
374{ 374{
375 of_unregister_platform_driver(&p9100_driver); 375 platform_driver_unregister(&p9100_driver);
376} 376}
377 377
378module_init(p9100_init); 378module_init(p9100_init);
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
536static int __devinit platinumfb_probe(struct platform_device* odev, 536static 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
680static struct of_platform_driver platinum_driver = 679static 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
705static void __exit platinumfb_exit(void) 704static void __exit platinumfb_exit(void)
706{ 705{
707 of_unregister_platform_driver(&platinum_driver); 706 platform_driver_unregister(&platinum_driver);
708} 707}
709 708
710MODULE_LICENSE("GPL"); 709MODULE_LICENSE("GPL");
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
114static int __devinit gfb_probe(struct platform_device *op, 114static 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};
199MODULE_DEVICE_TABLE(of, ffb_match); 198MODULE_DEVICE_TABLE(of, ffb_match);
200 199
201static struct of_platform_driver gfb_driver = { 200static 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
219static void __exit gfb_exit(void) 218static void __exit gfb_exit(void)
220{ 219{
221 of_unregister_platform_driver(&gfb_driver); 220 platform_driver_unregister(&gfb_driver);
222} 221}
223 222
224module_init(gfb_init); 223module_init(gfb_init);
diff --git a/drivers/video/tcx.c b/drivers/video/tcx.c
index 77ad27955cf0..855b71993f61 100644
--- a/drivers/video/tcx.c
+++ b/drivers/video/tcx.c
@@ -362,8 +362,7 @@ static void tcx_unmap_regs(struct platform_device *op, struct fb_info *info,
362 info->screen_base, info->fix.smem_len); 362 info->screen_base, info->fix.smem_len);
363} 363}
364 364
365static int __devinit tcx_probe(struct platform_device *op, 365static int __devinit tcx_probe(struct platform_device *op)
366 const struct of_device_id *match)
367{ 366{
368 struct device_node *dp = op->dev.of_node; 367 struct device_node *dp = op->dev.of_node;
369 struct fb_info *info; 368 struct fb_info *info;
@@ -511,7 +510,7 @@ static const struct of_device_id tcx_match[] = {
511}; 510};
512MODULE_DEVICE_TABLE(of, tcx_match); 511MODULE_DEVICE_TABLE(of, tcx_match);
513 512
514static struct of_platform_driver tcx_driver = { 513static struct platform_driver tcx_driver = {
515 .driver = { 514 .driver = {
516 .name = "tcx", 515 .name = "tcx",
517 .owner = THIS_MODULE, 516 .owner = THIS_MODULE,
@@ -526,12 +525,12 @@ static int __init tcx_init(void)
526 if (fb_get_options("tcxfb", NULL)) 525 if (fb_get_options("tcxfb", NULL))
527 return -ENODEV; 526 return -ENODEV;
528 527
529 return of_register_platform_driver(&tcx_driver); 528 return platform_driver_register(&tcx_driver);
530} 529}
531 530
532static void __exit tcx_exit(void) 531static void __exit tcx_exit(void)
533{ 532{
534 of_unregister_platform_driver(&tcx_driver); 533 platform_driver_unregister(&tcx_driver);
535} 534}
536 535
537module_init(tcx_init); 536module_init(tcx_init);
diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c
index 68bd23476c64..77dea015ff69 100644
--- a/drivers/video/xilinxfb.c
+++ b/drivers/video/xilinxfb.c
@@ -404,8 +404,7 @@ static int xilinxfb_release(struct device *dev)
404 * OF bus binding 404 * OF bus binding
405 */ 405 */
406 406
407static int __devinit 407static int __devinit xilinxfb_of_probe(struct platform_device *op)
408xilinxfb_of_probe(struct platform_device *op, const struct of_device_id *match)
409{ 408{
410 const u32 *prop; 409 const u32 *prop;
411 u32 *p; 410 u32 *p;
@@ -418,8 +417,6 @@ xilinxfb_of_probe(struct platform_device *op, const struct of_device_id *match)
418 /* Copy with the default pdata (not a ptr reference!) */ 417 /* Copy with the default pdata (not a ptr reference!) */
419 pdata = xilinx_fb_default_pdata; 418 pdata = xilinx_fb_default_pdata;
420 419
421 dev_dbg(&op->dev, "xilinxfb_of_probe(%p, %p)\n", op, match);
422
423 /* Allocate the driver data region */ 420 /* Allocate the driver data region */
424 drvdata = kzalloc(sizeof(*drvdata), GFP_KERNEL); 421 drvdata = kzalloc(sizeof(*drvdata), GFP_KERNEL);
425 if (!drvdata) { 422 if (!drvdata) {
@@ -505,7 +502,7 @@ static struct of_device_id xilinxfb_of_match[] __devinitdata = {
505}; 502};
506MODULE_DEVICE_TABLE(of, xilinxfb_of_match); 503MODULE_DEVICE_TABLE(of, xilinxfb_of_match);
507 504
508static struct of_platform_driver xilinxfb_of_driver = { 505static struct platform_driver xilinxfb_of_driver = {
509 .probe = xilinxfb_of_probe, 506 .probe = xilinxfb_of_probe,
510 .remove = __devexit_p(xilinxfb_of_remove), 507 .remove = __devexit_p(xilinxfb_of_remove),
511 .driver = { 508 .driver = {
@@ -523,13 +520,13 @@ static struct of_platform_driver xilinxfb_of_driver = {
523static int __init 520static int __init
524xilinxfb_init(void) 521xilinxfb_init(void)
525{ 522{
526 return of_register_platform_driver(&xilinxfb_of_driver); 523 return platform_driver_register(&xilinxfb_of_driver);
527} 524}
528 525
529static void __exit 526static void __exit
530xilinxfb_cleanup(void) 527xilinxfb_cleanup(void)
531{ 528{
532 of_unregister_platform_driver(&xilinxfb_of_driver); 529 platform_driver_unregister(&xilinxfb_of_driver);
533} 530}
534 531
535module_init(xilinxfb_init); 532module_init(xilinxfb_init);