swh:1:snp:173f8deb0c56c557784b4fd217e7608ac6197844
Raw File
Tip revision: 39d3520c92cf7a28c07229ca00cc35a1e8026c77 authored by Linus Torvalds on 13 August 2007, 04:25:24 UTC
Linux 2.6.23-rc3
Tip revision: 39d3520
fb.h
#ifndef _ASM_FB_H_
#define _ASM_FB_H_
#include <linux/fb.h>
#include <asm/prom.h>

#define fb_pgprotect(...) do {} while (0)

static inline int fb_is_primary_device(struct fb_info *info)
{
	struct device *dev = info->device;
	struct device_node *node;

	node = dev->archdata.prom_node;
	if (node &&
	    node == of_console_device)
		return 1;

	return 0;
}

#endif /* _ASM_FB_H_ */
back to top