]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/pnx4008/pnxrgbfb.c
I2C: TWL4030: Add power button and power IRQ support
[linux-2.6-omap-h63xx.git] / drivers / video / pnx4008 / pnxrgbfb.c
index 7d9453c91a4283d5dd24153b48ac99ce290266ef..685761a0732c2d4196b727875af516627e9ae2a8 100644 (file)
@@ -26,7 +26,6 @@
 #include <linux/init.h>
 #include <linux/platform_device.h>
 
-#include <asm/uaccess.h>
 #include "sdum.h"
 #include "fbcommon.h"
 
@@ -154,7 +153,8 @@ static int __devinit rgbfb_probe(struct platform_device *pdev)
                        goto err1;
        }
 
-       if (!fb_get_options("pnxrgbfb", &option) && !strcmp(option, "nocursor"))
+       if (!fb_get_options("pnxrgbfb", &option) && option &&
+                       !strcmp(option, "nocursor"))
                rgbfb_ops.fb_cursor = no_cursor;
 
        info->node = -1;
@@ -191,7 +191,7 @@ err:
 
 static struct platform_driver rgbfb_driver = {
        .driver = {
-               .name = "rgbfb",
+               .name = "pnx4008-rgbfb",
        },
        .probe = rgbfb_probe,
        .remove = rgbfb_remove,