Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH 1/3] MIPS: BCM47XX: Include io.h directly and fix brace indent
@ 2015-04-01  6:23 Rafał Miłecki
  2015-04-01  6:23 ` [PATCH 2/3] MIPS: BCM47XX: Increase NVRAM buffer size to 64 KiB Rafał Miłecki
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Rafał Miłecki @ 2015-04-01  6:23 UTC (permalink / raw)
  To: linux-mips, Ralf Baechle; +Cc: Hauke Mehrtens, Rafał Miłecki

We use IO functions like readl & ioremap_nocache, so include linux/io.h

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
---
 arch/mips/bcm47xx/nvram.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/mips/bcm47xx/nvram.c b/arch/mips/bcm47xx/nvram.c
index 6a97732..2357ea3 100644
--- a/arch/mips/bcm47xx/nvram.c
+++ b/arch/mips/bcm47xx/nvram.c
@@ -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);
-- 
1.8.4.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-04-01 11:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-01  6:23 [PATCH 1/3] MIPS: BCM47XX: Include io.h directly and fix brace indent Rafał Miłecki
2015-04-01  6:23 ` [PATCH 2/3] MIPS: BCM47XX: Increase NVRAM buffer size to 64 KiB Rafał Miłecki
2015-04-01  6:23 ` [PATCH 3/3] MIPS: BCM47XX: Don't try guessing NVRAM size on MTD partition Rafał Miłecki
2015-04-01 11:15 ` [PATCH 1/3] MIPS: BCM47XX: Include io.h directly and fix brace indent Sergei Shtylyov
2015-04-01 11:20   ` Rafał Miłecki
2015-04-01 11:23     ` Sergei Shtylyov
2015-04-01 11:28       ` Rafał Miłecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox