]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/panthor: Fix error code in panthor_gpu_init()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 2 Apr 2024 09:56:19 +0000 (12:56 +0300)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 3 Apr 2024 07:06:27 +0000 (09:06 +0200)
commit99b74db1e27145bdf0afb85559aa70d951569ac3
tree8e7e10c47f322f116c4b87c30b6c11bf69950516
parentd33733263a550775c7574169f62bf144f74d8f9a
drm/panthor: Fix error code in panthor_gpu_init()

This code accidentally returns zero/success on error because of a typo.
It should be "irq" instead of "ret".  The other thing is that if
platform_get_irq_byname() were to return zero then the error code would
be cmplicated.  Fortunately, it does not so we can just change <= to
< 0.

Fixes: 5cd894e258c4 ("drm/panthor: Add the GPU logical block")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/d753e684-43ee-45c2-a1fd-86222da204e1@moroto.mountain
drivers/gpu/drm/panthor/panthor_gpu.c