* [PATCH] enable compile on !CONFIG_PCI and CONFIG_PPC_EFIKA
@ 2007-05-01 19:37 Domen Puncer
0 siblings, 0 replies; only message in thread
From: Domen Puncer @ 2007-05-01 19:37 UTC (permalink / raw)
To: linuxppc-embedded
Trivial fix to enable compile on !CONFIG_PCI and CONFIG_PPC_EFIKA
Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
---
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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-01 19:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-01 19:37 [PATCH] enable compile on !CONFIG_PCI and CONFIG_PPC_EFIKA Domen Puncer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).