]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tve200: Fix handling of platform_get_irq() error
authorKrzysztof Kozlowski <krzk@kernel.org>
Thu, 27 Aug 2020 07:11:07 +0000 (09:11 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 17 Oct 2020 07:33:01 +0000 (09:33 +0200)
commit9f2eb83b803f952e5b217eef795a183035bb0121
tree86c753ea915e4a905156ac109991b6e2856455df
parentafe966606be4596da9911ea255e60927fa8d1a2e
drm/tve200: Fix handling of platform_get_irq() error

platform_get_irq() returns -ERRNO on error.  In such case comparison
to 0 would pass the check.

Fixes: 1c75dca8837d ("drm/tve200: Add new driver for TVE200")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200827071107.27429-2-krzk@kernel.org
drivers/gpu/drm/tve200/tve200_drv.c