Stephen Boyd
15bddb7d78
gpio: 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: linux-gpio@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-16-swboyd@chromium.org
Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2019-08-05 13:25:34 +02:00
..
2019-03-26 18:38:07 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:29:52 -07:00
2019-07-03 10:24:12 +02:00
2019-07-03 10:10:32 +02:00
2019-07-09 09:07:00 -07:00
2019-08-05 11:42:29 +02:00
2019-05-30 11:26:32 -07:00
2019-07-09 09:07:00 -07:00
2019-04-05 00:04:25 +07:00
2019-07-28 11:59:50 +02:00
2019-08-05 13:25:34 +02:00
2019-05-24 17:36:45 +02:00
2019-04-05 00:04:26 +07:00
2019-05-30 11:26:32 -07:00
2018-10-10 09:21:06 +02:00
2019-02-08 15:55:40 +02:00
2019-07-15 11:03:02 -03:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-07-15 11:52:34 +02:00
2019-06-05 17:37:10 +02:00
2019-07-31 00:57:21 +02:00
2019-08-05 13:25:34 +02:00
2019-07-15 11:52:42 +02:00
2019-06-27 15:56:51 +01:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:32 -07:00
2019-06-14 10:16:15 +02:00
2019-05-30 11:26:41 -07:00
2019-08-05 13:25:34 +02:00
2019-02-09 11:33:37 +01:00
2019-04-05 00:04:26 +07:00
2018-10-01 12:27:19 +02:00
2018-12-07 17:34:07 +02:00
2018-12-07 17:34:07 +02:00
2019-07-15 21:10:39 -07:00
2019-06-05 17:37:00 +02:00
2019-05-28 10:28:15 +02:00
2019-07-09 09:07:00 -07:00
2019-06-05 17:36:38 +02:00
2019-06-05 17:37:06 +02:00
2019-04-05 00:04:26 +07:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:37:10 +02:00
2019-04-05 00:04:26 +07:00
2019-05-30 11:26:37 -07:00
2018-12-14 14:27:41 +01:00
2019-08-05 11:45:24 +02:00
2019-06-19 17:09:55 +02:00
2019-07-09 09:07:00 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-08-05 13:25:34 +02:00
2019-07-29 00:03:52 +02:00
2019-07-31 00:57:21 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:29:19 -07:00
2019-06-05 17:37:17 +02:00
2019-04-23 11:30:59 +02:00
2019-05-30 11:26:39 -07:00
2019-04-08 08:47:06 +02:00
2019-06-19 17:09:55 +02:00
2019-04-08 11:17:43 +02:00
2019-06-27 15:54:19 +02:00
2019-08-03 00:15:03 +02:00
2019-06-05 17:37:06 +02:00
2019-02-08 15:55:41 +02:00
2019-04-05 00:04:27 +07:00
2019-06-07 23:20:23 +02:00
2019-04-05 00:04:27 +07:00
2018-12-21 11:29:57 +01:00
2019-04-05 00:04:27 +07:00
2019-07-09 09:07:00 -07:00
2019-05-30 11:29:52 -07:00
2019-07-09 09:07:00 -07:00
2019-05-24 17:36:45 +02:00
2019-02-01 17:24:52 -06:00
2019-05-30 11:26:41 -07:00
2018-11-05 08:54:42 +01:00
2018-07-29 21:55:33 +02:00
2019-07-09 09:07:00 -07:00
2019-08-05 13:25:34 +02:00
2019-06-19 17:09:55 +02:00
2018-12-17 15:28:30 +01:00
2019-05-30 11:29:52 -07:00
2019-06-27 15:56:50 +01:00
2019-05-24 17:36:45 +02:00
2019-06-19 17:09:06 +02:00
2019-06-19 17:09:55 +02:00
2019-01-11 10:34:37 +01:00
2019-05-30 11:26:32 -07:00
2019-04-23 13:08:33 +02:00
2019-07-03 10:24:02 +02:00
2018-12-07 17:34:08 +02:00
2019-04-05 00:04:27 +07:00
2019-08-05 13:25:34 +02:00
2019-06-05 17:37:06 +02:00
2019-06-19 17:09:10 +02:00
2019-07-09 09:07:00 -07:00
2019-05-30 11:26:32 -07:00
2019-08-05 13:25:34 +02:00
2019-06-19 17:09:10 +02:00
2019-06-19 17:09:06 +02:00
2019-08-05 13:25:34 +02:00
2019-05-01 10:41:38 +01:00
2019-05-30 11:29:19 -07:00
2018-09-04 08:22:47 +02:00
2018-09-04 08:22:47 +02:00
2019-05-24 17:39:01 +02:00
2018-09-04 08:22:47 +02:00
2018-09-04 08:22:47 +02:00
2019-02-21 13:19:52 +01:00
2019-04-05 00:04:28 +07:00
2018-09-04 08:22:47 +02:00
2018-09-10 08:48:51 +02:00
2018-09-10 08:49:22 +02:00
2019-06-19 17:09:55 +02:00
2019-04-05 00:04:28 +07:00
2019-05-28 10:28:14 +02:00
2019-08-05 11:26:58 +02:00
2019-06-27 15:56:51 +01:00
2018-09-17 10:55:24 -07:00
2019-02-08 15:55:41 +02:00
2018-09-17 10:55:24 -07:00
2018-09-17 10:55:24 -07:00
2018-09-17 10:55:24 -07:00
2019-05-30 11:26:41 -07:00
2019-07-31 00:57:21 +02:00
2019-06-19 17:09:07 +02:00
2019-07-09 09:07:00 -07:00
2019-04-05 00:04:28 +07:00
2019-05-30 11:29:52 -07:00
2018-09-17 10:55:24 -07:00
2019-06-19 17:09:55 +02:00
2019-08-05 13:25:34 +02:00
2019-08-05 13:25:34 +02:00
2019-07-31 00:59:19 +02:00
2019-07-31 00:57:21 +02:00
2019-04-08 11:20:12 +02:00
2018-12-11 01:04:23 +00:00
2018-09-25 09:08:48 +02:00
2019-08-01 10:04:16 +02:00
2019-08-01 10:04:16 +02:00
2018-09-25 09:08:48 +02:00
2019-08-03 00:25:25 +02:00
2019-07-31 00:57:21 +02:00
2019-07-16 12:21:41 -07:00
2019-07-15 20:18:40 -07:00
2019-06-14 10:16:15 +02:00