From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kuninori Morimoto Subject: [PATCH 3/3] irda: sh_sir: use devm_request_irq() Date: Tue, 07 Jan 2014 20:55:05 -0800 (PST) Message-ID: <871u0jxec9.wl%kuninori.morimoto.gx@gmail.com> References: <8761pvxedn.wl%kuninori.morimoto.gx@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: netdev@vger.kernel.org, Kuninori Morimoto , Huqiu Liu To: "David S. Miller" Return-path: Received: from mail-pb0-f52.google.com ([209.85.160.52]:55166 "EHLO mail-pb0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753893AbaAHEzG (ORCPT ); Tue, 7 Jan 2014 23:55:06 -0500 Received: by mail-pb0-f52.google.com with SMTP id uo5so1075427pbc.39 for ; Tue, 07 Jan 2014 20:55:05 -0800 (PST) In-Reply-To: <8761pvxedn.wl%kuninori.morimoto.gx@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Kuninori Morimoto Huqiu reported current sh_sir driver doesn't call free_irq() in spite of using request_irq(). This patch replaces request_irq() into devm_request_irq() to solve this issue Reported-by: Huqiu Liu Signed-off-by: Kuninori Morimoto --- drivers/net/irda/sh_sir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/irda/sh_sir.c b/drivers/net/irda/sh_sir.c index 8d9ae5a..cadf52e 100644 --- a/drivers/net/irda/sh_sir.c +++ b/drivers/net/irda/sh_sir.c @@ -761,7 +761,7 @@ static int sh_sir_probe(struct platform_device *pdev) goto err_mem_4; platform_set_drvdata(pdev, ndev); - err = request_irq(irq, sh_sir_irq, 0, "sh_sir", self); + err = devm_request_irq(&pdev->dev, irq, sh_sir_irq, 0, "sh_sir", self); if (err) { dev_warn(&pdev->dev, "Unable to attach sh_sir interrupt\n"); goto err_mem_4; -- 1.7.9.5