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
This commit is contained in:
Felix Fietkau 2014-06-10 09:06:06 +00:00
parent dd31da467f
commit 0bca3f9547
9 changed files with 66 additions and 63 deletions

View file

@ -213,7 +213,7 @@
+ radio_config = 0; + radio_config = 0;
+ } + }
+ +
+ return (u8 *) radio_config; + return radio_config;
+} +}
+ +
+int __init +int __init

View file

@ -7,7 +7,7 @@
+obj-$(CONFIG_ATHEROS_AR2315_PCI) += pci.o +obj-$(CONFIG_ATHEROS_AR2315_PCI) += pci.o
--- /dev/null --- /dev/null
+++ b/arch/mips/ar231x/pci.c +++ 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 + * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License + * modify it under the terms of the GNU General Public License
@ -96,7 +96,8 @@
+ return err ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; + 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); + return config_access(devfn, where, size, value, 0);
+} +}

View file

@ -23,7 +23,7 @@
--- /dev/null --- /dev/null
+++ b/drivers/mtd/devices/ar2315.c +++ b/drivers/mtd/devices/ar2315.c
@@ -0,0 +1,515 @@ @@ -0,0 +1,517 @@
+ +
+/* +/*
+ * MTD driver for the SPI Flash Memory support on Atheros AR2315 + * MTD driver for the SPI Flash Memory support on Atheros AR2315
@ -333,7 +333,8 @@
+} +}
+ +
+static int +static int
+spiflash_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) +spiflash_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen,
+ u_char *buf)
+{ +{
+ struct spiflash_priv *priv = to_spiflash(mtd); + struct spiflash_priv *priv = to_spiflash(mtd);
+ u8 *read_addr; + u8 *read_addr;
@ -357,7 +358,8 @@
+} +}
+ +
+static int +static int
+spiflash_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u8 *buf) +spiflash_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen,
+ const u8 *buf)
+{ +{
+ struct spiflash_priv *priv = to_spiflash(mtd); + struct spiflash_priv *priv = to_spiflash(mtd);
+ u32 opcode, bytes_left; + u32 opcode, bytes_left;

View file

@ -1,6 +1,6 @@
--- a/drivers/net/ethernet/ar231x/ar231x.c --- a/drivers/net/ethernet/ar231x/ar231x.c
+++ b/drivers/net/ethernet/ar231x/ar231x.c +++ b/drivers/net/ethernet/ar231x/ar231x.c
@@ -1272,7 +1272,7 @@ static int ar231x_mdiobus_probe (struct @@ -1272,7 +1272,7 @@ static int ar231x_mdiobus_probe(struct n
BUG_ON(!phydev); BUG_ON(!phydev);
BUG_ON(phydev->attached_dev); BUG_ON(phydev->attached_dev);