treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm64 / include / asm / fb.h
blobbdc735ee1f679c811c8c575fd7fb3198d139cef7
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2012 ARM Ltd.
4 */
5 #ifndef __ASM_FB_H_
6 #define __ASM_FB_H_
8 #include <linux/fb.h>
9 #include <linux/fs.h>
10 #include <asm/page.h>
12 static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
13 unsigned long off)
15 vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
18 static inline int fb_is_primary_device(struct fb_info *info)
20 return 0;
23 #endif /* __ASM_FB_H_ */