diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-01-08 05:54:55 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-10 04:57:13 +0100 |
commit | 033b06ebe9b067bc9b988d8fc967140a870a2616 (patch) | |
tree | cbe8913b8119ea98601e27ad5699ac12f8895848 /drivers | |
parent | irda: fixup SH_SIR position on Kconfig (diff) | |
download | linux-033b06ebe9b067bc9b988d8fc967140a870a2616.tar.xz linux-033b06ebe9b067bc9b988d8fc967140a870a2616.zip |
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<huqiuliu@gmail.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/irda/sh_irda.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/irda/sh_irda.c b/drivers/net/irda/sh_irda.c index ff45cd0d60e8..c96b46b2c3a8 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; |