1 From 50c979109c484c07358a1ac75b99df36d563c132 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Wed, 1 Apr 2015 08:23:03 +0200
4 Subject: [PATCH] MIPS: BCM47XX: Include io.h directly and fix brace indent
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 We use IO functions like readl & ioremap_nocache, so include linux/io.h
11 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
12 Cc: linux-mips@linux-mips.org
13 Cc: Hauke Mehrtens <hauke@hauke-m.de>
14 Patchwork: https://patchwork.linux-mips.org/patch/9650/
15 Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
17 arch/mips/bcm47xx/nvram.c | 3 ++-
18 1 file changed, 2 insertions(+), 1 deletion(-)
20 --- a/arch/mips/bcm47xx/nvram.c
21 +++ b/arch/mips/bcm47xx/nvram.c
23 * option) any later version.
26 +#include <linux/io.h>
27 #include <linux/types.h>
28 #include <linux/module.h>
29 #include <linux/kernel.h>
30 @@ -203,7 +204,7 @@ int bcm47xx_nvram_getenv(const char *nam
31 if (eq - var == strlen(name) &&
32 strncmp(var, name, eq - var) == 0)
33 return snprintf(val, val_len, "%s", value);
38 EXPORT_SYMBOL(bcm47xx_nvram_getenv);