blob: c73ca081e1f56721c6f3912dd60730b1de6ecc2b [file] [log] [blame]
Antonino A. Daplas10eb2652007-07-17 04:05:27 -07001#ifndef _ASM_FB_H_
2#define _ASM_FB_H_
Antonino A. Daplas317b3c22007-07-17 04:05:28 -07003#include <linux/fb.h>
David S. Miller3adf55a2007-07-18 22:03:58 -07004#include <asm/prom.h>
Antonino A. Daplas10eb2652007-07-17 04:05:27 -07005
6#define fb_pgprotect(...) do {} while (0)
7
Antonino A. Daplas317b3c22007-07-17 04:05:28 -07008static inline int fb_is_primary_device(struct fb_info *info)
9{
David S. Miller3adf55a2007-07-18 22:03:58 -070010 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
Antonino A. Daplas317b3c22007-07-17 04:05:28 -070018 return 0;
19}
20
Antonino A. Daplas10eb2652007-07-17 04:05:27 -070021#endif /* _ASM_FB_H_ */