aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-09-12 06:51:10 +0000
committerJohn Crispin <blogic@openwrt.org>2014-09-12 06:51:10 +0000
commita52aec95f4875e7a81ac9253da7a4344f8a243df (patch)
tree7f5a4133f225bff003c81b86193cf67a087c78b6 /target/linux/atheros
parentbf53842fa3275ea73dcf92205a57ee184022f035 (diff)
downloadupstream-a52aec95f4875e7a81ac9253da7a4344f8a243df.tar.gz
upstream-a52aec95f4875e7a81ac9253da7a4344f8a243df.tar.bz2
upstream-a52aec95f4875e7a81ac9253da7a4344f8a243df.zip
atheros: use static keywork for local code
Make PCI IRQ handler and several structures static as suggested by sparse. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42485 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros')
-rw-r--r--target/linux/atheros/patches-3.14/105-ar2315_pci.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/atheros/patches-3.14/105-ar2315_pci.patch b/target/linux/atheros/patches-3.14/105-ar2315_pci.patch
index 77c0e89647..58e8f4b03e 100644
--- a/target/linux/atheros/patches-3.14/105-ar2315_pci.patch
+++ b/target/linux/atheros/patches-3.14/105-ar2315_pci.patch
@@ -108,7 +108,7 @@
+ return config_access(devfn, where, size, &value, 1);
+}
+
-+struct pci_ops ar231x_pci_ops = {
++static struct pci_ops ar231x_pci_ops = {
+ .read = ar231x_pci_read,
+ .write = ar231x_pci_write,
+};
@@ -128,7 +128,7 @@
+ .flags = IORESOURCE_IO,
+};
+
-+struct pci_controller ar231x_pci_controller = {
++static struct pci_controller ar231x_pci_controller = {
+ .pci_ops = &ar231x_pci_ops,
+ .mem_resource = &ar231x_mem_resource,
+ .io_resource = &ar231x_io_resource,
@@ -272,7 +272,7 @@
+ ar231x_write_reg(AR2315_PCI_INT_STATUS, AR2315_PCI_EXT_INT);
+}
+
-+void ar2315_pci_irq(int irq)
++static void ar2315_pci_irq(int irq)
+{
+ if (ar231x_read_reg(AR2315_PCI_INT_STATUS) == AR2315_PCI_ABORT_INT)
+ pci_abort_irq();