[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201020155402.30318-7-qiangqing.zhang@nxp.com>
Date: Tue, 20 Oct 2020 23:53:58 +0800
From: Joakim Zhang <qiangqing.zhang@....com>
To: mkl@...gutronix.de, robh+dt@...nel.org, shawnguo@...nel.org,
s.hauer@...gutronix.de
Cc: kernel@...gutronix.de, linux-imx@....com, victor.liu@....com,
linux-can@...r.kernel.org, pankaj.bansal@....com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH V3 06/10] can: flexcan: disable wakeup in flexcan_remove()
Disable wakeup in flexcan_remove().
Fixes: de3578c198c6 ("can: flexcan: add self wakeup support")
Fixes: 915f9666421c ("can: flexcan: add support for DT property 'wakeup-source'")
Signed-off-by: Joakim Zhang <qiangqing.zhang@....com>
---
drivers/net/can/flexcan.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c
index 06f94b6f0ebe..881799bd9c5e 100644
--- a/drivers/net/can/flexcan.c
+++ b/drivers/net/can/flexcan.c
@@ -2062,6 +2062,8 @@ static int flexcan_remove(struct platform_device *pdev)
{
struct net_device *dev = platform_get_drvdata(pdev);
+ device_set_wakeup_enable(&pdev->dev, false);
+ device_set_wakeup_capable(&pdev->dev, false);
unregister_flexcandev(dev);
pm_runtime_disable(&pdev->dev);
free_candev(dev);
--
2.17.1
Powered by blists - more mailing lists