diff options
| author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-11-25 16:52:39 +0300 |
|---|---|---|
| committer | Chun-Kuang Hu <chunkuang.hu@kernel.org> | 2025-12-30 18:35:45 +0300 |
| commit | 2de5bdc2d9819d645b4d0e91d3a520b7fee87294 (patch) | |
| tree | 02483f15d601fb88eb1cb6b2caeb7f2ff37bd589 /scripts/const_structs.checkpatch | |
| parent | 8f0b4cce4481fb22653697cced8d0d04027cb1e8 (diff) | |
| download | linux-2de5bdc2d9819d645b4d0e91d3a520b7fee87294.tar.xz | |
drm/mediatek: Fix platform_get_irq() error checking
The platform_get_irq() function returns negative error codes on failure
and positive non-zero IRQ numbers on success. It never returns NULL. Fix
the error checking to look for negatives, and change "hdmi->irq" from
unsigned int to just int.
Fixes: 8d0f79886273 ("drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
https://patchwork.kernel.org/project/dri-devel/patch/aSW0p5sqnJVJsqDO@stanley.mountain/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
