kernel: update 4.0 to 4.0.5
[openwrt.git] / target / linux / brcm47xx / patches-4.0 / 030-07-MIPS-BCM47XX-Include-io.h-directly-and-fix-brace-ind.patch
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 --- a/arch/mips/bcm47xx/nvram.c
21 +++ b/arch/mips/bcm47xx/nvram.c
22 @@ -11,6 +11,7 @@
23   * option) any later version.
24   */
25  
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);
34 -               }
35 +       }
36         return -ENOENT;
37  }
38  EXPORT_SYMBOL(bcm47xx_nvram_getenv);