]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/s1d13xxxfb.c
[ARM] 4411/1: KS8695: Another serial driver fix
[linux-2.6-omap-h63xx.git] / drivers / video / s1d13xxxfb.c
index e5d0f92eeae36613314f4bd347f9090777c07a02..a5333c1907898ef71a301eecd75d8e3e56cbb5fd 100644 (file)
@@ -28,7 +28,6 @@
  * more details.
  */
 
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/delay.h>
@@ -588,6 +587,7 @@ s1d13xxxfb_probe(struct platform_device *pdev)
                goto bail;
        }
 
+       platform_set_drvdata(pdev, info);
        default_par = info->par;
        default_par->regs = ioremap_nocache(pdev->resource[1].start,
                        pdev->resource[1].end - pdev->resource[1].start +1);
@@ -638,8 +638,6 @@ s1d13xxxfb_probe(struct platform_device *pdev)
                goto bail;
        }
 
-       platform_set_drvdata(pdev, info);
-
        printk(KERN_INFO "fb%d: %s frame buffer device\n",
               info->node, info->fix.id);