Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
[pandora-kernel.git] / drivers / video / tcx.c
index 77ad279..855b719 100644 (file)
@@ -362,8 +362,7 @@ static void tcx_unmap_regs(struct platform_device *op, struct fb_info *info,
                           info->screen_base, info->fix.smem_len);
 }
 
-static int __devinit tcx_probe(struct platform_device *op,
-                              const struct of_device_id *match)
+static int __devinit tcx_probe(struct platform_device *op)
 {
        struct device_node *dp = op->dev.of_node;
        struct fb_info *info;
@@ -511,7 +510,7 @@ static const struct of_device_id tcx_match[] = {
 };
 MODULE_DEVICE_TABLE(of, tcx_match);
 
-static struct of_platform_driver tcx_driver = {
+static struct platform_driver tcx_driver = {
        .driver = {
                .name = "tcx",
                .owner = THIS_MODULE,
@@ -526,12 +525,12 @@ static int __init tcx_init(void)
        if (fb_get_options("tcxfb", NULL))
                return -ENODEV;
 
-       return of_register_platform_driver(&tcx_driver);
+       return platform_driver_register(&tcx_driver);
 }
 
 static void __exit tcx_exit(void)
 {
-       of_unregister_platform_driver(&tcx_driver);
+       platform_driver_unregister(&tcx_driver);
 }
 
 module_init(tcx_init);