linux/drivers/soc/fsl
Stephen Boyd 031bca078e soc: fsl: qbman: 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: Thierry Reding <treding@nvidia.com>
Cc: Li Yang <leoyang.li@nxp.com>
Cc: Simon Horman <horms+renesas@verge.net.au>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
2019-08-15 16:31:45 -05:00
..
dpio soc: fsl: dpio: Add support for memory backed QBMan portals 2019-05-20 14:28:16 -05:00
qbman soc: fsl: qbman: Remove dev_err() usage after platform_get_irq() 2019-08-15 16:31:45 -05:00
qe NXP/FSL SoC driver updates for v5.3 (take 2) 2019-07-21 20:04:02 -07:00
dpaa2-console.c soc: fsl: fix spelling mistake "Firmaware" -> "Firmware" 2019-05-29 15:52:10 -05:00
guts.c NXP/FSL SoC driver updates for v5.3 2019-06-17 04:38:06 -07:00
Kconfig NXP/FSL SoC driver updates for v5.3 2019-06-17 04:38:06 -07:00
Makefile NXP/FSL SoC driver updates for v5.3 2019-06-17 04:38:06 -07:00