From: Kuninori Morimoto Date: Wed, 8 Jan 2014 04:54:55 +0000 (-0800) Subject: irda: sh_irda: use devm_request_irq() X-Git-Tag: v3.14-rc1~94^2~243 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=033b06ebe9b067bc9b988d8fc967140a870a2616;p=profile%2Fcommon%2Fkernel-common.git irda: sh_irda: use devm_request_irq() Huqiu reported current sh_irda 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/irda/sh_irda.c b/drivers/net/irda/sh_irda.c index ff45cd0..c96b46b 100644 --- a/drivers/net/irda/sh_irda.c +++ b/drivers/net/irda/sh_irda.c @@ -804,7 +804,7 @@ static int sh_irda_probe(struct platform_device *pdev) goto err_mem_4; platform_set_drvdata(pdev, ndev); - err = request_irq(irq, sh_irda_irq, 0, "sh_irda", self); + err = devm_request_irq(&pdev->dev, irq, sh_irda_irq, 0, "sh_irda", self); if (err) { dev_warn(&pdev->dev, "Unable to attach sh_irda interrupt\n"); goto err_mem_4;