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 diff --git a/arch/mips/bcm47xx/nvram.c b/arch/mips/bcm47xx/nvram.c
21 index 6a97732..2357ea3 100644
22 --- a/arch/mips/bcm47xx/nvram.c
23 +++ b/arch/mips/bcm47xx/nvram.c
25 * option) any later version.
28 +#include <linux/io.h>
29 #include <linux/types.h>
30 #include <linux/module.h>
31 #include <linux/kernel.h>
32 @@ -203,7 +204,7 @@ int bcm47xx_nvram_getenv(const char *name, char *val, size_t val_len)
33 if (eq - var == strlen(name) &&
34 strncmp(var, name, eq - var) == 0)
35 return snprintf(val, val_len, "%s", value);
40 EXPORT_SYMBOL(bcm47xx_nvram_getenv);