diff options
author | Dmitry Osipenko <[email protected]> | 2020-07-09 20:12:01 +0300 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2020-07-16 10:50:40 +0200 |
commit | c607e5e2e4f4dc6e91da6fd81280f0474fdb6cd4 (patch) | |
tree | 53bd3877a82cc246d2b690cd42c0d27cfd14ee00 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 78934d885eb237910fc9194e0eeeb96ca54b24ae (diff) |
gpio: max77620: Don't shadow error code of platform_get_irq()
The platform_get_irq() returns a positive interrupt number on success and
negative error code on failure (zero shouldn't ever happen in practice, it
would produce a noisy warning). Hence let's return the error code directly
instead of overriding it with -ENODEV.
Suggested-by: Andy Shevchenko <[email protected]>
Signed-off-by: Dmitry Osipenko <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Acked-by: Laxman Dewangan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions