arch: Remove struct fb_info from video helpers
[linux-2.6-block.git] / arch / parisc / video / fbdev.c
index e4f8ac99fc9e0451b9d05da079030a1ffeca76ae..540fa0c919d5985f4a61ba62b2f8c9cf0131d1e1 100644 (file)
@@ -5,12 +5,13 @@
  * Copyright (C) 2001-2002 Thomas Bogendoerfer <tsbogend@alpha.franken.de>
  */
 
-#include <linux/fb.h>
 #include <linux/module.h>
 
 #include <video/sticore.h>
 
-int fb_is_primary_device(struct fb_info *info)
+#include <asm/fb.h>
+
+bool video_is_primary_device(struct device *dev)
 {
        struct sti_struct *sti;
 
@@ -21,6 +22,6 @@ int fb_is_primary_device(struct fb_info *info)
                return true;
 
        /* return true if it's the default built-in framebuffer driver */
-       return (sti->dev == info->device);
+       return (sti->dev == dev);
 }
-EXPORT_SYMBOL(fb_is_primary_device);
+EXPORT_SYMBOL(video_is_primary_device);