mailbox: stm32-ipcc: remove useless device_init_wakeup call
authorFabien Dessenne <fabien.dessenne@st.com>
Fri, 4 Jan 2019 13:47:48 +0000 (14:47 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Thu, 7 Mar 2019 02:33:59 +0000 (20:33 -0600)
If the "wakeup-source" property does not exist there is no need to call
device_init_wakeup("false") at probe.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/stm32-ipcc.c

index 7ca8a14138b7b5ac19dfddb1e046115aa03f5672..210fe504f5aee9954cccc33512bbf11b536b1122 100644 (file)
@@ -276,8 +276,6 @@ static int stm32_ipcc_probe(struct platform_device *pdev)
                        dev_err(dev, "Failed to set wake up irq\n");
                        goto err_init_wkp;
                }
-       } else {
-               device_init_wakeup(dev, false);
        }
 
        /* mailbox controller */