f7e404f6e33b3d1d3a7ce9cb8cf0e71db8969220
[openwrt/staging/robimarko.git] /
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
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 We use IO functions like readl & ioremap_nocache, so include linux/io.h
10
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>
16 ---
17 arch/mips/bcm47xx/nvram.c | 3 ++-
18 1 file changed, 2 insertions(+), 1 deletion(-)
19
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
24 @@ -11,6 +11,7 @@
25 * option) any later version.
26 */
27
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);
36 - }
37 + }
38 return -ENOENT;
39 }
40 EXPORT_SYMBOL(bcm47xx_nvram_getenv);
41 --
42 1.8.4.5
43