031-07-MIPS-BCM47XX-Include-io.h-directly-and-fix-brace-ind.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. We use IO functions like readl & ioremap_nocache, so include linux/io.h
  9. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  10. Cc: linux-mips@linux-mips.org
  11. Cc: Hauke Mehrtens <hauke@hauke-m.de>
  12. Patchwork: https://patchwork.linux-mips.org/patch/9650/
  13. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  14. ---
  15. arch/mips/bcm47xx/nvram.c | 3 ++-
  16. 1 file changed, 2 insertions(+), 1 deletion(-)
  17. --- a/arch/mips/bcm47xx/nvram.c
  18. +++ b/arch/mips/bcm47xx/nvram.c
  19. @@ -11,6 +11,7 @@
  20. * option) any later version.
  21. */
  22. +#include <linux/io.h>
  23. #include <linux/types.h>
  24. #include <linux/module.h>
  25. #include <linux/kernel.h>
  26. @@ -203,7 +204,7 @@ int bcm47xx_nvram_getenv(const char *nam
  27. if (eq - var == strlen(name) &&
  28. strncmp(var, name, eq - var) == 0)
  29. return snprintf(val, val_len, "%s", value);
  30. - }
  31. + }
  32. return -ENOENT;
  33. }
  34. EXPORT_SYMBOL(bcm47xx_nvram_getenv);