]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/leo.c
S3C2410: add error print if we cannot add attribute
[linux-2.6-omap-h63xx.git] / drivers / video / leo.c
index 45b9a5d55dec97d7f7ae3303fedb2a71e569afff..8bc46e9303402da0b78211d433f38949d4d687e1 100644 (file)
 #include <linux/init.h>
 #include <linux/fb.h>
 #include <linux/mm.h>
+#include <linux/of_device.h>
 
 #include <asm/io.h>
-#include <asm/prom.h>
-#include <asm/of_device.h>
 #include <asm/fbio.h>
 
 #include "sbuslib.h"
@@ -562,7 +561,7 @@ static int __devinit leo_probe(struct of_device *op, const struct of_device_id *
        par->physbase = op->resource[0].start;
        par->which_io = op->resource[0].flags & IORESOURCE_BITS;
 
-       sbusfb_fill_var(&info->var, dp->node, 32);
+       sbusfb_fill_var(&info->var, dp, 32);
        leo_fixup_var_rgb(&info->var);
 
        linebytes = of_getintprop_default(dp, "linebytes",
@@ -601,7 +600,7 @@ static int __devinit leo_probe(struct of_device *op, const struct of_device_id *
        leo_init_wids(info);
        leo_init_hw(info);
 
-       leo_blank(0, info);
+       leo_blank(FB_BLANK_UNBLANK, info);
 
        if (fb_alloc_cmap(&info->cmap, 256, 0))
                goto out_unmap_regs;
@@ -614,7 +613,7 @@ static int __devinit leo_probe(struct of_device *op, const struct of_device_id *
 
        dev_set_drvdata(&op->dev, info);
 
-       printk("%s: leo at %lx:%lx\n",
+       printk(KERN_INFO "%s: leo at %lx:%lx\n",
               dp->full_name,
               par->which_io, par->physbase);