Trivial fix to enable compile on !CONFIG_PCI and CONFIG_PPC_EFIKA

Signed-off-by: Domen Puncer <[EMAIL PROTECTED]>

---
Used in arch/powerpc/platforms/52xx/efika.c by
define_machine(efika) { .phys_mem_access_prot = }


 include/asm-powerpc/pci.h |    4 ++++
 1 file changed, 4 insertions(+)

Index: grant.git/include/asm-powerpc/pci.h
===================================================================
--- grant.git.orig/include/asm-powerpc/pci.h
+++ grant.git/include/asm-powerpc/pci.h
@@ -240,10 +240,14 @@ extern int pci_read_irq_line(struct pci_
 extern void pcibios_add_platform_entries(struct pci_dev *dev);
 
 struct file;
+#ifdef CONFIG_PCI
 extern pgprot_t        pci_phys_mem_access_prot(struct file *file,
                                         unsigned long pfn,
                                         unsigned long size,
                                         pgprot_t prot);
+#else
+#define pci_phys_mem_access_prot NULL
+#endif
 
 #define HAVE_ARCH_PCI_RESOURCE_TO_USER
 extern void pci_resource_to_user(const struct pci_dev *dev, int bar,
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Reply via email to