summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorFabien Dessenne <fabien.dessenne@st.com>2019-08-26 17:38:29 +0200
committerBjorn Andersson <bjorn.andersson@linaro.org>2019-08-26 14:59:24 -0700
commitd333de3707785b10c4f42e14f3ff254ac15cd7dc (patch)
tree82b46203e2c1373809b30814783099766c62ac4c /drivers/remoteproc
parentabbe429d56168b90c03bc548403d72505e4fd6b2 (diff)
downloadlinux-d333de3707785b10c4f42e14f3ff254ac15cd7dc.tar.bz2
remoteproc: stm32: manage the get_irq probe defer case
Manage the -EPROBE_DEFER error case for "wdg" IRQ. Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r--drivers/remoteproc/stm32_rproc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c
index 1c959131d796..2cf4b2992bfc 100644
--- a/drivers/remoteproc/stm32_rproc.c
+++ b/drivers/remoteproc/stm32_rproc.c
@@ -517,6 +517,9 @@ static int stm32_rproc_parse_dt(struct platform_device *pdev)
int err, irq;
irq = platform_get_irq(pdev, 0);
+ if (irq == -EPROBE_DEFER)
+ return -EPROBE_DEFER;
+
if (irq > 0) {
err = devm_request_irq(dev, irq, stm32_rproc_wdg, 0,
dev_name(dev), rproc);