aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2015-06-04 17:38:17 -0400
committerBjorn Helgaas <bhelgaas@google.com>2015-06-08 08:56:43 -0400
commit01d72a95188880b22190e937ed8718ed4b45bdce (patch)
tree0cfcd115d2beb8c22a9cae362881c1afbaf444ed /arch/sparc
parentd59d36a7fce6707acae644621320a75ab93f1856 (diff)
PCI: Remove unused pci_dma_burst_advice()
pci_dma_burst_advice() was added by e24c2d963a60 ("[PATCH] PCI: DMA bursting advice") but apparently never used. Remove it. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Michal Simek <monstr@monstr.eu> # microblaze CC: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/include/asm/pci_32.h10
-rw-r--r--arch/sparc/include/asm/pci_64.h19
2 files changed, 0 insertions, 29 deletions
diff --git a/arch/sparc/include/asm/pci_32.h b/arch/sparc/include/asm/pci_32.h
index 53e9b4987db0..b7c092df3134 100644
--- a/arch/sparc/include/asm/pci_32.h
+++ b/arch/sparc/include/asm/pci_32.h
@@ -22,16 +22,6 @@
22 22
23struct pci_dev; 23struct pci_dev;
24 24
25#ifdef CONFIG_PCI
26static inline void pci_dma_burst_advice(struct pci_dev *pdev,
27 enum pci_dma_burst_strategy *strat,
28 unsigned long *strategy_parameter)
29{
30 *strat = PCI_DMA_BURST_INFINITY;
31 *strategy_parameter = ~0UL;
32}
33#endif
34
35#endif /* __KERNEL__ */ 25#endif /* __KERNEL__ */
36 26
37#ifndef CONFIG_LEON_PCI 27#ifndef CONFIG_LEON_PCI
diff --git a/arch/sparc/include/asm/pci_64.h b/arch/sparc/include/asm/pci_64.h
index bd00a6226169..022d16008a00 100644
--- a/arch/sparc/include/asm/pci_64.h
+++ b/arch/sparc/include/asm/pci_64.h
@@ -31,25 +31,6 @@
31#define PCI64_REQUIRED_MASK (~(u64)0) 31#define PCI64_REQUIRED_MASK (~(u64)0)
32#define PCI64_ADDR_BASE 0xfffc000000000000UL 32#define PCI64_ADDR_BASE 0xfffc000000000000UL
33 33
34#ifdef CONFIG_PCI
35static inline void pci_dma_burst_advice(struct pci_dev *pdev,
36 enum pci_dma_burst_strategy *strat,
37 unsigned long *strategy_parameter)
38{
39 unsigned long cacheline_size;
40 u8 byte;
41
42 pci_read_config_byte(pdev, PCI_CACHE_LINE_SIZE, &byte);
43 if (byte == 0)
44 cacheline_size = 1024;
45 else
46 cacheline_size = (int) byte * 4;
47
48 *strat = PCI_DMA_BURST_BOUNDARY;
49 *strategy_parameter = cacheline_size;
50}
51#endif
52
53/* Return the index of the PCI controller for device PDEV. */ 34/* Return the index of the PCI controller for device PDEV. */
54 35
55int pci_domain_nr(struct pci_bus *bus); 36int pci_domain_nr(struct pci_bus *bus);