fb.h 382 B

123456789101112131415161718192021
  1. #ifndef _ASM_FB_H_
  2. #define _ASM_FB_H_
  3. #include <linux/fb.h>
  4. #include <asm/prom.h>
  5. #define fb_pgprotect(...) do {} while (0)
  6. static inline int fb_is_primary_device(struct fb_info *info)
  7. {
  8. struct device *dev = info->device;
  9. struct device_node *node;
  10. node = dev->archdata.prom_node;
  11. if (node &&
  12. node == of_console_device)
  13. return 1;
  14. return 0;
  15. }
  16. #endif /* _ASM_FB_H_ */