rv1126-uboot/drivers/misc
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
..
Kconfig Kconfig: Add EEPROM options to Kconfig when I2C_EEPROM is set 2017-09-02 15:50:30 -04:00
Makefile drivers/misc: Add basic support for ATSHA204A Crypto module 2017-07-12 06:57:38 +02:00
ali512x.c
altera_sysid.c
atsha204a-i2c.c drivers/misc: Add basic support for ATSHA204A Crypto module 2017-07-12 06:57:38 +02:00
cbmem_console.c
cros_ec.c UPSTREAM: dm: core: Add ofnode_for_each_subnode() 2018-01-16 18:13:59 +08:00
cros_ec_i2c.c
cros_ec_lpc.c
cros_ec_sandbox.c dm: ofnode: rename ofnode_read_prop() to ofnode_get_property() 2017-07-11 10:08:20 -06:00
cros_ec_spi.c
ds4510.c
ds4510.h
fsl_devdis.c
fsl_ifc.c
fsl_iim.c
fsl_sec_mon.c
gpio_led.c
i2c_eeprom.c i2c_eeprom: add static to i2c_eeprom_std_ops/probe 2017-06-26 07:12:47 +02:00
i2c_eeprom_emul.c
mc9sdz60.c
misc-uclass.c
mxc_ocotp.c imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
mxs_ocotp.c
ns87308.c
nuvoton_nct6102d.c
pca9551_led.c
pwrseq-uclass.c
qfw.c
rockchip-efuse.c UPSTREAM: rockchip: efuse: change to use dev_read_addr_ptr 2018-01-16 18:16:48 +08:00
smsc_lpc47m.c
smsc_sio1007.c
spltest_sandbox.c
status_led.c
swap_case.c
syscon_sandbox.c
tegra186_bpmp.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
tegra_car.c
twl4030_led.c
winbond_w83627.c