Commit 0f4ec05bbbd60f0159a739e54c910bca859ef039

Authored by Masahiro Yamada
1 parent 82b3d98b3a

ARM: uniphier: replace <linux/err.h> with <linux/errno.h>

These files only need error number macros.  Actually, IS_ERR(),
PTR_ERR(), ERR_PTR(), etc. are not useful for U-Boot.  Avoid
unnecessary header includes.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Showing 13 changed files with 16 additions and 14 deletions Side-by-side Diff

arch/arm/mach-uniphier/boot-mode/boot-mode.c
... ... @@ -7,7 +7,7 @@
7 7 #include <common.h>
8 8 #include <mmc.h>
9 9 #include <spl.h>
10   -#include <linux/err.h>
  10 +#include <linux/errno.h>
11 11  
12 12 #include "../sbc/sbc-regs.h"
13 13 #include "../soc-info.h"
arch/arm/mach-uniphier/clk/dpll-ld4.c
... ... @@ -6,7 +6,7 @@
6 6 */
7 7  
8 8 #include <common.h>
9   -#include <linux/err.h>
  9 +#include <linux/errno.h>
10 10 #include <linux/io.h>
11 11  
12 12 #include "../init.h"
arch/arm/mach-uniphier/clk/dpll-pro4.c
... ... @@ -6,7 +6,7 @@
6 6 */
7 7  
8 8 #include <common.h>
9   -#include <linux/err.h>
  9 +#include <linux/errno.h>
10 10 #include <linux/io.h>
11 11  
12 12 #include "../init.h"
arch/arm/mach-uniphier/dram/ddrphy-ld4.c
... ... @@ -6,7 +6,7 @@
6 6 */
7 7  
8 8 #include <common.h>
9   -#include <linux/err.h>
  9 +#include <linux/errno.h>
10 10 #include <linux/io.h>
11 11  
12 12 #include "ddrphy-init.h"
arch/arm/mach-uniphier/dram/ddrphy-training.c
... ... @@ -6,7 +6,7 @@
6 6 */
7 7  
8 8 #include <common.h>
9   -#include <linux/err.h>
  9 +#include <linux/errno.h>
10 10 #include <linux/io.h>
11 11  
12 12 #include "ddrphy-init.h"
arch/arm/mach-uniphier/dram/umc-ld20.c
... ... @@ -8,7 +8,8 @@
8 8  
9 9 #include <common.h>
10 10 #include <linux/bitops.h>
11   -#include <linux/err.h>
  11 +#include <linux/compat.h>
  12 +#include <linux/errno.h>
12 13 #include <linux/io.h>
13 14 #include <linux/sizes.h>
14 15 #include <asm/processor.h>
arch/arm/mach-uniphier/dram/umc-ld4.c
... ... @@ -7,7 +7,7 @@
7 7 */
8 8  
9 9 #include <common.h>
10   -#include <linux/err.h>
  10 +#include <linux/errno.h>
11 11 #include <linux/io.h>
12 12 #include <linux/sizes.h>
13 13 #include <asm/processor.h>
arch/arm/mach-uniphier/dram/umc-pro4.c
... ... @@ -7,7 +7,7 @@
7 7 */
8 8  
9 9 #include <common.h>
10   -#include <linux/err.h>
  10 +#include <linux/errno.h>
11 11 #include <linux/io.h>
12 12 #include <linux/sizes.h>
13 13 #include <asm/processor.h>
arch/arm/mach-uniphier/dram/umc-pxs2.c
1 1 /*
2   - * Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
  2 + * Copyright (C) 2015-2017 Socionext Inc.
  3 + * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
3 4 *
4 5 * based on commit 21b6e480f92ccc38fe0502e3116411d6509d3bf2 of Diag by:
5 6 * Copyright (C) 2015 Socionext Inc.
... ... @@ -8,7 +9,7 @@
8 9 */
9 10  
10 11 #include <common.h>
11   -#include <linux/err.h>
  12 +#include <linux/errno.h>
12 13 #include <linux/io.h>
13 14 #include <linux/sizes.h>
14 15 #include <asm/processor.h>
arch/arm/mach-uniphier/dram/umc-sld8.c
... ... @@ -7,7 +7,7 @@
7 7 */
8 8  
9 9 #include <common.h>
10   -#include <linux/err.h>
  10 +#include <linux/errno.h>
11 11 #include <linux/io.h>
12 12 #include <linux/sizes.h>
13 13 #include <asm/processor.h>
arch/arm/mach-uniphier/dram_init.c
... ... @@ -7,7 +7,7 @@
7 7 #include <common.h>
8 8 #include <libfdt.h>
9 9 #include <fdtdec.h>
10   -#include <linux/err.h>
  10 +#include <linux/errno.h>
11 11  
12 12 #include "init.h"
13 13 #include "soc-info.h"
arch/arm/mach-uniphier/memconf.c
... ... @@ -7,7 +7,7 @@
7 7 */
8 8  
9 9 #include <common.h>
10   -#include <linux/err.h>
  10 +#include <linux/errno.h>
11 11 #include <linux/io.h>
12 12 #include <linux/sizes.h>
13 13  
arch/arm/mach-uniphier/pinctrl-glue.c
... ... @@ -5,7 +5,7 @@
5 5 * SPDX-License-Identifier: GPL-2.0+
6 6 */
7 7  
8   -#include <linux/err.h>
  8 +#include <linux/errno.h>
9 9 #include <dm/device.h>
10 10 #include <dm/pinctrl.h>
11 11 #include <dm/uclass.h>