From: Fabien Dessenne Date: Wed, 24 Apr 2019 14:03:20 +0000 (+0200) Subject: drm/stm: ltdc: manage the get_irq probe defer case X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9e759fc7dcd6d416f64567ae8b3b07184c60dedb;p=openwrt%2Fstaging%2Fblogic.git drm/stm: ltdc: manage the get_irq probe defer case Manage the -EPROBE_DEFER error case for the ltdc IRQ. Signed-off-by: Fabien Dessenne Acked-by: Philippe Cornu Signed-off-by: Benjamin Gaignard Link: https://patchwork.freedesktop.org/patch/msgid/1556114601-30936-2-git-send-email-fabien.dessenne@st.com --- diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index 566b0d8af9b1..521ba83545db 100644 --- a/drivers/gpu/drm/stm/ltdc.c +++ b/drivers/gpu/drm/stm/ltdc.c @@ -1174,6 +1174,9 @@ int ltdc_load(struct drm_device *ddev) for (i = 0; i < MAX_IRQ; i++) { irq = platform_get_irq(pdev, i); + if (irq == -EPROBE_DEFER) + goto err; + if (irq < 0) continue;