spi: efm32: Convert to use GPIO descriptors
[linux/fpc-iii.git] / arch / csky / mm / ioremap.c
blob70c8268d3b2bdda6dac53cbcbf66d731ff51716f
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #include <linux/export.h>
5 #include <linux/mm.h>
6 #include <linux/io.h>
8 pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
9 unsigned long size, pgprot_t vma_prot)
11 if (!pfn_valid(pfn)) {
12 return pgprot_noncached(vma_prot);
13 } else if (file->f_flags & O_SYNC) {
14 return pgprot_writecombine(vma_prot);
17 return vma_prot;
19 EXPORT_SYMBOL(phys_mem_access_prot);