Commit 327e2768 authored by Jingoo Han's avatar Jingoo Han Committed by Florian Tobias Schandinat

video: s3c-fb: use devm_request_irq()

The devm_ functions allocate memory that is released when a driver
detaches. This patch uses devm_request_irq of these functions.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
parent 640ba244
...@@ -1433,7 +1433,7 @@ static int __devinit s3c_fb_probe(struct platform_device *pdev) ...@@ -1433,7 +1433,7 @@ static int __devinit s3c_fb_probe(struct platform_device *pdev)
goto err_lcd_clk; goto err_lcd_clk;
} }
sfb->irq_no = res->start; sfb->irq_no = res->start;
ret = request_irq(sfb->irq_no, s3c_fb_irq, ret = devm_request_irq(dev, sfb->irq_no, s3c_fb_irq,
0, "s3c_fb", sfb); 0, "s3c_fb", sfb);
if (ret) { if (ret) {
dev_err(dev, "irq request failed\n"); dev_err(dev, "irq request failed\n");
...@@ -1499,7 +1499,6 @@ static int __devinit s3c_fb_probe(struct platform_device *pdev) ...@@ -1499,7 +1499,6 @@ static int __devinit s3c_fb_probe(struct platform_device *pdev)
err_pm_runtime: err_pm_runtime:
pm_runtime_put_sync(sfb->dev); pm_runtime_put_sync(sfb->dev);
free_irq(sfb->irq_no, sfb);
err_lcd_clk: err_lcd_clk:
pm_runtime_disable(sfb->dev); pm_runtime_disable(sfb->dev);
...@@ -1535,8 +1534,6 @@ static int __devexit s3c_fb_remove(struct platform_device *pdev) ...@@ -1535,8 +1534,6 @@ static int __devexit s3c_fb_remove(struct platform_device *pdev)
if (sfb->windows[win]) if (sfb->windows[win])
s3c_fb_release_win(sfb, sfb->windows[win]); s3c_fb_release_win(sfb, sfb->windows[win]);
free_irq(sfb->irq_no, sfb);
if (!sfb->variant.has_clksel) { if (!sfb->variant.has_clksel) {
clk_disable(sfb->lcd_clk); clk_disable(sfb->lcd_clk);
clk_put(sfb->lcd_clk); clk_put(sfb->lcd_clk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment