From: Rafał Miłecki Date: Wed, 1 Apr 2015 06:23:03 +0000 (+0200) Subject: MIPS: BCM47XX: Include io.h directly and fix brace indent X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=50c979109c484c07358a1ac75b99df36d563c132;p=linux-beck.git MIPS: BCM47XX: Include io.h directly and fix brace indent We use IO functions like readl & ioremap_nocache, so include linux/io.h Signed-off-by: Rafał Miłecki Cc: linux-mips@linux-mips.org Cc: Hauke Mehrtens Patchwork: https://patchwork.linux-mips.org/patch/9650/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/bcm47xx/nvram.c b/arch/mips/bcm47xx/nvram.c index 6a97732c1eeb..2357ea322d48 100644 --- a/arch/mips/bcm47xx/nvram.c +++ b/arch/mips/bcm47xx/nvram.c @@ -11,6 +11,7 @@ * option) any later version. */ +#include #include #include #include @@ -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);