linux/sound/soc/fsl
Stephen Boyd cf9441adb1
ASoC: Remove dev_err() usage after platform_get_irq()
We don't need dev_err() messages when platform_get_irq() fails now that
platform_get_irq() prints an error message itself when something goes
wrong. Let's remove these prints with a simple semantic patch.

// <smpl>
@@
expression ret;
struct platform_device *E;
@@

ret =
(
platform_get_irq(E, ...)
|
platform_get_irq_byname(E, ...)
);

if ( \( ret < 0 \| ret <= 0 \) )
{
(
-if (ret != -EPROBE_DEFER)
-{ ...
-dev_err(...);
-... }
|
...
-dev_err(...);
)
...
}
// </smpl>

While we're here, remove braces on if statements that only have one
statement (manually).

Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: alsa-devel@alsa-project.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20190730181557.90391-50-swboyd@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-08-02 12:12:31 +01:00
..
efika-audio-fabric.c ASoC: fsl: efika-audio-fabric: use modern dai_link style 2019-06-06 21:41:08 +01:00
eukrea-tlv320.c ASoC: fsl: eukrea-tlv320: consider CPU-Platform possibility 2019-06-28 15:11:07 +01:00
fsl_asrc_dma.c ASoC: add for_each_dpcm_be() macro 2018-09-20 10:31:20 -07:00
fsl_asrc.c ASoC: Remove dev_err() usage after platform_get_irq() 2019-08-02 12:12:31 +01:00
fsl_asrc.h ASoC: fsl_asrc: Switch to SPDX identifier 2018-07-24 16:58:59 +01:00
fsl_audmix.c ASoC: fsl_audmix: use devm_platform_ioremap_resource() to simplify code 2019-07-31 12:04:59 +01:00
fsl_audmix.h ASoC: fsl: Add Audio Mixer CPU DAI driver 2019-03-26 14:07:35 +00:00
fsl_dma.c ASoC: fsl-dma: Switch to SPDX identifier 2019-04-08 13:51:01 +07:00
fsl_dma.h ASoC: fsl-dma: Switch to SPDX identifier 2019-04-08 13:51:01 +07:00
fsl_esai.c ASoC: Remove dev_err() usage after platform_get_irq() 2019-08-02 12:12:31 +01:00
fsl_esai.h ASoC: fsl_esai: Switch to SPDX identifier 2018-05-03 10:29:05 +09:00
fsl_micfil.c ASoC: fsl_micfil: Remove set but not used variable 'osr' 2019-05-02 10:46:02 +09:00
fsl_micfil.h ASoC: Add MICFIL SoC Digital Audio Interface driver. 2019-01-07 17:00:55 +00:00
fsl_sai.c ASoC: Remove dev_err() usage after platform_get_irq() 2019-08-02 12:12:31 +01:00
fsl_sai.h ASoC: fsl_sai: derive TX FIFO watermark from FIFO depth 2019-07-22 13:26:13 +01:00
fsl_spdif.c ASoC: Remove dev_err() usage after platform_get_irq() 2019-08-02 12:12:31 +01:00
fsl_spdif.h ASoC: fsl_spdif: fix TXCLK_DF mask 2019-02-18 17:41:55 +00:00
fsl_ssi_dbg.c ASoC: fsl: no need to check return value of debugfs_create functions 2019-06-14 16:37:48 +01:00
fsl_ssi.c ASoC: Remove dev_err() usage after platform_get_irq() 2019-08-02 12:12:31 +01:00
fsl_ssi.h ASoC: fsl: no need to check return value of debugfs_create functions 2019-06-14 16:37:48 +01:00
fsl_utils.c ASoC: fsl: mpc8610_hpcd/p1022_ds/p1022_rdk: use modern dai_link style 2019-06-06 21:42:35 +01:00
fsl_utils.h ASoC: fsl_utils: Switch to SPDX identifier 2018-07-24 16:59:03 +01:00
fsl-asoc-card.c ASoC: fsl: fsl-asoc-card: consider CPU-Platform possibility 2019-06-28 15:11:17 +01:00
imx-audmix.c ASoC: fsl: imx-audmix: consider CPU-Platform possibility 2019-06-28 15:12:39 +01:00
imx-audmux.c ASoC: imx-audmux: use devm_platform_ioremap_resource() to simplify code 2019-07-31 12:04:40 +01:00
imx-audmux.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
imx-es8328.c ASoC: fsl: imx-es8328: consider CPU-Platform possibility 2019-06-28 15:11:38 +01:00
imx-mc13783.c ASoC: fsl: imx-mc13783: use modern dai_link style 2019-06-06 21:43:33 +01:00
imx-pcm-dma.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
imx-pcm-fiq.c ASoC: imx-pcm-fiq: Switch to SPDX identifier 2019-04-08 13:52:35 +07:00
imx-pcm.h ASoC: imx-pcm: Switch to SPDX identifier 2019-04-08 13:47:44 +07:00
imx-sgtl5000.c ASoC: fsl: imx-sgtl5000: consider CPU-Platform possibility 2019-06-28 15:11:59 +01:00
imx-spdif.c ASoC: fsl: imx-spdif: consider CPU-Platform possibility 2019-06-28 15:12:19 +01:00
imx-ssi.c ASoC: Remove dev_err() usage after platform_get_irq() 2019-08-02 12:12:31 +01:00
imx-ssi.h ASoC: imx-ssi: Switch to SPDX identifier 2019-04-08 13:53:35 +07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile ASoC: fsl: Add Audio Mixer machine driver 2019-03-26 14:07:51 +00:00
mpc5200_dma.c ASoC: mpc5200_dma: Fix invalid license ID 2019-05-02 10:46:07 +09:00
mpc5200_dma.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mpc5200_psc_ac97.c ASoC: mpc5200_psc_ac97: Switch to SPDX identifier 2019-04-08 13:54:40 +07:00
mpc5200_psc_i2s.c ASoC: mpc5200_psc_i2s: Fix invalid license ID 2019-05-02 10:46:06 +09:00
mpc8610_hpcd.c ASoC: fsl: mpc8610_hpcd/p1022_ds/p1022_rdk: use modern dai_link style 2019-06-06 21:42:35 +01:00
mx27vis-aic32x4.c ASoC: fsl: mx27vis-aic32x4: use modern dai_link style 2019-06-06 21:41:37 +01:00
p1022_ds.c ASoC: fsl: mpc8610_hpcd/p1022_ds/p1022_rdk: use modern dai_link style 2019-06-06 21:42:35 +01:00
p1022_rdk.c ASoC: fsl: mpc8610_hpcd/p1022_ds/p1022_rdk: use modern dai_link style 2019-06-06 21:42:35 +01:00
pcm030-audio-fabric.c ASoC: fsl: pcm030-audio-fabric: use modern dai_link style 2019-06-06 21:43:43 +01:00
phycore-ac97.c ASoC: fsl: phycore-ac97: use modern dai_link style 2019-06-06 21:41:47 +01:00
wm1133-ev1.c ASoC: fsl: wm1133-ev1: use modern dai_link style 2019-06-06 21:41:57 +01:00