diff options
Diffstat (limited to 'include/asm-sparc/fb.h')
-rw-r--r-- | include/asm-sparc/fb.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/asm-sparc/fb.h b/include/asm-sparc/fb.h new file mode 100644 index 000000000000..c73ca081e1f5 --- /dev/null +++ b/include/asm-sparc/fb.h | |||
@@ -0,0 +1,21 @@ | |||
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_ */ | ||