u-boot/drivers/misc
Masahiro Yamada 9b643e312d 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>

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>
2017-10-04 11:59:44 -04:00
..
ali512x.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
altera_sysid.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
atsha204a-i2c.c drivers/misc: Add basic support for ATSHA204A Crypto module 2017-07-12 06:57:38 +02:00
cbmem_console.c Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
cros_ec.c dm: core: Add ofnode_for_each_subnode() 2017-09-11 21:43:58 -06:00
cros_ec_i2c.c cros_ec: i2c: Add support for version 3 of the EC protocol 2017-02-08 06:12:16 -07:00
cros_ec_lpc.c cros_ec: exynos: Match up device tree with kernel version 2015-04-18 11:11:16 -06:00
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 dm: Rename dev_get_parentdata() to dev_get_parent_priv() 2015-10-23 09:42:28 -06:00
ds4510.c Kconfig: Drop CONFIG_SYS_I2C_DS4510_ADDR 2017-05-22 08:37:12 -04:00
ds4510.h Kconfig: Drop CONFIG_CMD_DS4510 2017-05-22 08:37:07 -04:00
fsl_devdis.c arm/ls102xa:add hwconfig setting to support disable unused devices 2015-09-01 21:49:20 -05:00
fsl_ifc.c armv8/ls2085aqds: NAND boot support 2015-04-23 16:46:50 -07:00
fsl_iim.c powerpc, 5xxx, 512x: remove support for mpc5xxx and mpc512x 2017-06-16 10:14:55 -04:00
fsl_sec_mon.c fsl_sec_mon: Update driver for Security Monitor 2016-10-06 09:54:14 -07:00
gpio_led.c status_led: Kconfig migration 2017-01-21 15:12:33 -05:00
i2c_eeprom.c misc: i2c_eeprom: Add compatible for AT24MAC402 2017-09-12 17:58:54 -04:00
i2c_eeprom_emul.c dm: Update the I2C eeprom driver for livetree 2017-06-01 07:03:15 -06:00
Kconfig dm: misc: add stm32 rcc driver 2017-09-22 07:40:02 -04:00
Makefile dm: misc: add stm32 rcc driver 2017-09-22 07:40:02 -04:00
mc9sdz60.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
misc-uclass.c misc: add "call" uclass op 2016-08-12 11:01:22 -06:00
mxc_ocotp.c imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
mxs_ocotp.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
ns87308.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
nuvoton_nct6102d.c misc: Add simple driver for some Nuvoton NCT6102D devices 2016-08-16 11:44:09 +08:00
pca9551_led.c status_led: Kconfig migration 2017-01-21 15:12:33 -05:00
pwrseq-uclass.c dm: Add a power sequencing uclass 2016-01-21 20:42:34 -07:00
qfw.c x86: Use unsigned long for address in table generation 2017-02-06 11:38:46 +08:00
rockchip-efuse.c rockchip: efuse: change to use dev_read_addr_ptr 2017-09-18 20:40:37 +02:00
smsc_lpc47m.c x86: superio: Add keyboard controller support to smsc_lpc47m driver 2015-08-26 07:54:12 -07:00
smsc_sio1007.c superio: Add SMSC SIO1007 driver 2016-02-21 13:42:52 +08:00
spltest_sandbox.c dm: sandbox: Add a simple driver to test of-platdata 2016-07-14 20:40:24 -06:00
status_led.c status_led: Kconfig migration 2017-01-21 15:12:33 -05:00
stm32_rcc.c dm: misc: add stm32 rcc driver 2017-09-22 07:40:02 -04:00
swap_case.c sandbox: Add missing errno.h includes in a few files 2015-05-14 18:49:34 -06:00
syscon_sandbox.c dm: test: Add a test for the system controller uclass 2015-07-21 17:39:33 -06:00
tegra186_bpmp.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
tegra_car.c dm: core: Update device_bind_driver_to_node() to use ofnode 2017-06-01 07:03:08 -06:00
twl4030_led.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
winbond_w83627.c misc: Add simple driver to enable the legacy UART on Winbond Super IO chips 2016-01-28 13:53:30 +08:00