]> git.karo-electronics.de Git - linux-beck.git/commitdiff
MIPS: BCM47XX: Include io.h directly and fix brace indent
authorRafał Miłecki <zajec5@gmail.com>
Wed, 1 Apr 2015 06:23:03 +0000 (08:23 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 2 Apr 2015 11:54:19 +0000 (13:54 +0200)
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>
arch/mips/bcm47xx/nvram.c

index 6a97732c1eeb49027aef8be17b13daf3a246b28d..2357ea322d48e2023d2dad62ed2c4f46b163ca8d 100644 (file)
@@ -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);