Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4acb4d6c authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by David S. Miller
Browse files

irda: sh_sir: use devm_request_irq()



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: default avatarHuqiu <Liu&lt;huqiuliu@gmail.com>
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 033b06eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;