linux-mediatek.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] rtc: mt6397: drop free_irq of devm_xx allocated irq
@ 2019-12-04  2:02 Mao Wenan
  2019-12-04  6:35 ` Dan Carpenter
  0 siblings, 1 reply; 5+ messages in thread
From: Mao Wenan @ 2019-12-04  2:02 UTC (permalink / raw)
  To: eddie.huang, sean.wang, a.zummo, alexandre.belloni, matthias.bgg
  Cc: linux-rtc, kernel-janitors, linux-kernel, Mao Wenan, Hulk Robot,
	linux-mediatek, linux-arm-kernel

rtc->irq is requested by devm_request_threaded_irq,
and request_threaded_irq. IRQs requested with this
function will be automatically freed on driver detach.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Mao Wenan <maowenan@huawei.com>
---
 drivers/rtc/rtc-mt6397.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/rtc/rtc-mt6397.c b/drivers/rtc/rtc-mt6397.c
index 5249fc99fd5f..d6a10111137a 100644
--- a/drivers/rtc/rtc-mt6397.c
+++ b/drivers/rtc/rtc-mt6397.c
@@ -293,7 +293,6 @@ static int mtk_rtc_probe(struct platform_device *pdev)
 	return 0;
 
 out_free_irq:
-	free_irq(rtc->irq, rtc);
 	return ret;
 }
 
-- 
2.20.1


_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-12-04  8:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-04  2:02 [PATCH -next] rtc: mt6397: drop free_irq of devm_xx allocated irq Mao Wenan
2019-12-04  6:35 ` Dan Carpenter
2019-12-04  7:28   ` [PATCH v2 " Mao Wenan
2019-12-04  8:40     ` Alexandre Belloni
2019-12-04  8:42       ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).