[NET]: Introducing socket mark socket option.
[pandora-kernel.git] / include / asm-sparc / fb.h
1 #ifndef _ASM_FB_H_
2 #define _ASM_FB_H_
3 #include <linux/fb.h>
4 #include <asm/prom.h>
5
6 #define fb_pgprotect(...) do {} while (0)
7
8 static inline int fb_is_primary_device(struct fb_info *info)
9 {
10         struct device *dev = info->device;
11         struct device_node *node;
12
13         node = dev->archdata.prom_node;
14         if (node &&
15             node == of_console_device)
16                 return 1;
17
18         return 0;
19 }
20
21 #endif /* _ASM_FB_H_ */