rv1126-uboot/arch/arm/mach-socfpga
Masahiro Yamada 90aa625c9a treewide: replace with error() with pr_err()
U-Boot widely uses error() as a bit noisier variant of printf().

This macro causes name conflict with the following line in
include/linux/compiler-gcc.h:

  # define __compiletime_error(message) __attribute__((error(message)))

This prevents us from using __compiletime_error(), and makes it
difficult to fully sync BUILD_BUG macros with Linux.  (Notice
Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)

Let's convert error() into now treewide-available pr_err().

Done with the help of Coccinelle, excluing tools/ directory.

The semantic patch I used is as follows:

// <smpl>
@@@@
-error
+pr_err
 (...)
// </smpl>

Change-Id: I921807c1770d36a91e692c48ab477558bb2ed0b8
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
[trini: Re-run Coccinelle]
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 9b643e312d528f291966c1f30b0d90bf3b1d43dc)
2018-01-17 15:27:28 +08:00
..
include/mach UPSTREAM: socfpga: boot0 hook: adjust to unified boot0 semantics 2017-11-08 10:48:57 +08:00
Kconfig Convert CONFIG_SPL_BOARD_INIT to Kconfig 2017-05-22 07:29:48 -04:00
Makefile arm: socfpga: Restructure FPGA driver in the preparation to support A10 2017-07-26 10:31:44 +02:00
board.c
clock_manager.c arm: socfpga: Add clock driver for Arria 10 2017-05-18 11:33:17 +02:00
clock_manager_arria10.c arm: socfpga: Add clock driver for Arria 10 2017-05-18 11:33:17 +02:00
clock_manager_gen5.c arm: socfpga: Restructure clock manager driver 2017-05-18 11:33:16 +02:00
fpga_manager.c
freeze_controller.c
misc.c arm: socfpga: Restructure misc driver 2017-05-18 11:33:17 +02:00
misc_arria10.c arm: socfpga: Add misc support for Arria 10 2017-05-18 11:33:18 +02:00
misc_gen5.c env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
pinmux_arria10.c arm: socfpga: Add pinmux for Arria 10 2017-05-18 11:33:18 +02:00
qts-filter.sh qts-filter.sh: strip DOS line endings and handle continuation lines 2016-12-06 01:45:57 +01:00
reset_manager.c arm: socfpga: Restructure reset manager driver 2017-05-18 11:33:17 +02:00
reset_manager_arria10.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
reset_manager_gen5.c arm: socfpga: Restructure reset manager driver 2017-05-18 11:33:17 +02:00
scan_manager.c
spl.c arm: socfpga: Add SPL support for Arria 10 2017-05-18 11:33:18 +02:00
system_manager_gen5.c arm: socfpga: Restructure system manager 2017-05-18 11:33:17 +02:00
timer.c
wrap_iocsr_config.c
wrap_pinmux_config.c
wrap_pll_config.c arm: socfpga: set the mpuclk divider in the Altera group register 2017-02-08 02:19:11 +01:00
wrap_sdram_config.c