summaryrefslogtreecommitdiffstats
path: root/arch/mips/bcm47xx
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-04-01 08:23:03 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-04-02 13:54:19 +0200
commit50c979109c484c07358a1ac75b99df36d563c132 (patch)
tree2ce3dd7977317869adbbef8309f9d3c28189b145 /arch/mips/bcm47xx
parente2e7f29af84aa59dd8191b9f6fee80aafa4e06cd (diff)
downloadlinux-stable-50c979109c484c07358a1ac75b99df36d563c132.tar.gz
linux-stable-50c979109c484c07358a1ac75b99df36d563c132.tar.bz2
linux-stable-50c979109c484c07358a1ac75b99df36d563c132.zip
MIPS: BCM47XX: Include io.h directly and fix brace indent
We use IO functions like readl & ioremap_nocache, so include linux/io.h Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Cc: linux-mips@linux-mips.org Cc: Hauke Mehrtens <hauke@hauke-m.de> Patchwork: https://patchwork.linux-mips.org/patch/9650/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/bcm47xx')
-rw-r--r--arch/mips/bcm47xx/nvram.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/bcm47xx/nvram.c b/arch/mips/bcm47xx/nvram.c
index 6a97732c1eeb..2357ea322d48 100644
--- a/arch/mips/bcm47xx/nvram.c
+++ b/arch/mips/bcm47xx/nvram.c
@@ -11,6 +11,7 @@
* option) any later version.
*/
+#include <linux/io.h>
#include <linux/types.h>
#include <linux/module.h>
#include <linux/kernel.h>
@@ -203,7 +204,7 @@ int bcm47xx_nvram_getenv(const char *name, char *val, size_t val_len)
if (eq - var == strlen(name) &&
strncmp(var, name, eq - var) == 0)
return snprintf(val, val_len, "%s", value);
- }
+ }
return -ENOENT;
}
EXPORT_SYMBOL(bcm47xx_nvram_getenv);