[SPARC32]: clean include/asm-sparc/irq.h
[linux-block.git] / include / asm-sparc / fb.h
CommitLineData
10eb2659
AD
1#ifndef _ASM_FB_H_
2#define _ASM_FB_H_
317b3c21 3#include <linux/fb.h>
3adf55ad 4#include <asm/prom.h>
10eb2659
AD
5
6#define fb_pgprotect(...) do {} while (0)
7
317b3c21
AD
8static inline int fb_is_primary_device(struct fb_info *info)
9{
3adf55ad
DM
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
317b3c21
AD
18 return 0;
19}
20
10eb2659 21#endif /* _ASM_FB_H_ */