Stephen Boyd faac910201 rtc: 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: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: linux-rtc@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20190730181557.90391-40-swboyd@chromium.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2019-08-13 10:53:10 +02:00
..
2019-08-12 23:01:25 +02:00
2019-08-12 22:56:07 +02:00
2019-04-04 10:07:10 +02:00
2019-01-22 19:18:27 +01:00
2019-05-09 14:46:33 -07:00
2019-07-17 10:03:50 -07:00
2019-07-17 10:03:50 -07:00
2019-07-17 10:03:50 -07:00
2019-04-16 18:06:54 +02:00
2019-04-04 10:06:54 +02:00
2019-05-16 09:19:14 -07:00
2019-07-17 10:03:50 -07:00
2019-07-17 10:03:50 -07:00
2019-04-04 10:07:10 +02:00
2017-09-05 09:55:02 +02:00
2019-02-17 21:29:10 +01:00
2019-07-17 10:03:50 -07:00
2019-07-17 10:03:50 -07:00
2019-05-09 14:46:33 -07:00
2019-07-17 10:03:50 -07:00
2019-05-23 17:44:52 +02:00
2019-07-17 10:03:50 -07:00
2019-04-29 15:53:43 +02:00
2019-05-08 22:14:36 +02:00