aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-3.10/105-ar2315_pci.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-10 09:06:06 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-10 09:06:06 +0000
commitf10e6fd9af01ea8281cc8a20d2722250851673b2 (patch)
tree619048f85f06d4a3624582d70a996ebc88c24684 /target/linux/atheros/patches-3.10/105-ar2315_pci.patch
parent4348822245705290031f879d45078a4fcc09ab2c (diff)
downloadupstream-f10e6fd9af01ea8281cc8a20d2722250851673b2.tar.gz
upstream-f10e6fd9af01ea8281cc8a20d2722250851673b2.tar.bz2
upstream-f10e6fd9af01ea8281cc8a20d2722250851673b2.zip
atheros: spaces fixes
Add missed spaces and remove odd space as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41091 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/patches-3.10/105-ar2315_pci.patch')
-rw-r--r--target/linux/atheros/patches-3.10/105-ar2315_pci.patch17
1 files changed, 9 insertions, 8 deletions
diff --git a/target/linux/atheros/patches-3.10/105-ar2315_pci.patch b/target/linux/atheros/patches-3.10/105-ar2315_pci.patch
index af4bb88867..2f3f8098ce 100644
--- a/target/linux/atheros/patches-3.10/105-ar2315_pci.patch
+++ b/target/linux/atheros/patches-3.10/105-ar2315_pci.patch
@@ -7,7 +7,7 @@
+obj-$(CONFIG_ATHEROS_AR2315_PCI) += pci.o
--- /dev/null
+++ b/arch/mips/ar231x/pci.c
-@@ -0,0 +1,228 @@
+@@ -0,0 +1,229 @@
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
@@ -71,18 +71,18 @@
+ if (write) {
+ value = *ptr;
+ if (size == 1)
-+ err = put_dbe(value, (u8 *) addr);
++ err = put_dbe(value, (u8 *)addr);
+ else if (size == 2)
-+ err = put_dbe(value, (u16 *) addr);
++ err = put_dbe(value, (u16 *)addr);
+ else if (size == 4)
-+ err = put_dbe(value, (u32 *) addr);
++ err = put_dbe(value, (u32 *)addr);
+ } else {
+ if (size == 1)
-+ err = get_dbe(value, (u8 *) addr);
++ err = get_dbe(value, (u8 *)addr);
+ else if (size == 2)
-+ err = get_dbe(value, (u16 *) addr);
++ err = get_dbe(value, (u16 *)addr);
+ else if (size == 4)
-+ err = get_dbe(value, (u32 *) addr);
++ err = get_dbe(value, (u32 *)addr);
+ if (err)
+ *ptr = 0xffffffff;
+ else
@@ -96,7 +96,8 @@
+ return err ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL;
+}
+
-+static int ar231x_pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * value)
++static int ar231x_pci_read(struct pci_bus *bus, unsigned int devfn, int where,
++ int size, u32 *value)
+{
+ return config_access(devfn, where, size, value, 0);
+}