aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/pci.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-04-24 15:39:39 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-04-24 15:39:39 +0900
commit3e98f9f15e916c48dfc5231d7e6a59be7f122764 (patch)
tree75ea5d02fa448d495cd8f23f7e1785b400fbdf65 /arch/sh/include/asm/pci.h
parentsh: pci: Rename pci-new.c to pci.c. (diff)
downloadlinux-dev-3e98f9f15e916c48dfc5231d7e6a59be7f122764.tar.xz
linux-dev-3e98f9f15e916c48dfc5231d7e6a59be7f122764.zip
sh: pci: Fix up the build for CONFIG_PCI=n.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to '')
-rw-r--r--arch/sh/include/asm/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/include/asm/pci.h b/arch/sh/include/asm/pci.h
index f910121559b0..5b2e0fcdfc22 100644
--- a/arch/sh/include/asm/pci.h
+++ b/arch/sh/include/asm/pci.h
@@ -88,6 +88,7 @@ static inline void pcibios_penalize_isa_irq(int irq, int active)
#define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0)
#endif
+#ifdef CONFIG_PCI
static inline void pci_dma_burst_advice(struct pci_dev *pdev,
enum pci_dma_burst_strategy *strat,
unsigned long *strategy_parameter)
@@ -95,6 +96,7 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev,
*strat = PCI_DMA_BURST_INFINITY;
*strategy_parameter = ~0UL;
}
+#endif
#ifdef CONFIG_SUPERH32
/*