diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-10 09:06:06 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-10 09:06:06 +0000 |
commit | 0bca3f9547a32788f8c5f18f229b3d09e81a7617 (patch) | |
tree | 4641708ce14c626b02b44f26466912615be05603 /target/linux/atheros/patches-3.10/105-ar2315_pci.patch | |
parent | dd31da467f6bb066fbd809097e7d5dc5822d14e1 (diff) | |
download | upstream-0bca3f9547a32788f8c5f18f229b3d09e81a7617.tar.gz upstream-0bca3f9547a32788f8c5f18f229b3d09e81a7617.tar.bz2 upstream-0bca3f9547a32788f8c5f18f229b3d09e81a7617.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>
SVN-Revision: 41091
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.patch | 17 |
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); +} |