mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-04 01:36:58 -05:00
drm: msm: fix error check return value of irq_of_parse_and_map()
[ Upstream commit b9e4f1d2b505df8e2439b63e67afaa287c1c43e2 ] The irq_of_parse_and_map() function returns 0 on failure, and does not return an negative value. Reported-by: Zeal Robot <[email protected]> Signed-off-by: Lv Ruyi <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/483175/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
efd183d988
commit
b507f067e9
1 changed files with 3 additions and 3 deletions
|
|
@ -698,9 +698,9 @@ struct msm_kms *mdp5_kms_init(struct drm_device *dev)
|
|||
pdev = mdp5_kms->pdev;
|
||||
|
||||
irq = irq_of_parse_and_map(pdev->dev.of_node, 0);
|
||||
if (irq < 0) {
|
||||
ret = irq;
|
||||
DRM_DEV_ERROR(&pdev->dev, "failed to get irq: %d\n", ret);
|
||||
if (!irq) {
|
||||
ret = -EINVAL;
|
||||
DRM_DEV_ERROR(&pdev->dev, "failed to get irq\n");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue