Commit e43064cc authored by Russell King's avatar Russell King Committed by Bartlomiej Zolnierkiewicz

video: sa1100fb: use devm_clk_get()

Use devm_clk_get() to get the clock for the LCD.
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent ba1d36ba
...@@ -1230,10 +1230,9 @@ static int sa1100fb_probe(struct platform_device *pdev) ...@@ -1230,10 +1230,9 @@ static int sa1100fb_probe(struct platform_device *pdev)
if (!fbi) if (!fbi)
goto failed; goto failed;
fbi->clk = clk_get(&pdev->dev, NULL); fbi->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(fbi->clk)) { if (IS_ERR(fbi->clk)) {
ret = PTR_ERR(fbi->clk); ret = PTR_ERR(fbi->clk);
fbi->clk = NULL;
goto failed; goto failed;
} }
...@@ -1289,8 +1288,6 @@ static int sa1100fb_probe(struct platform_device *pdev) ...@@ -1289,8 +1288,6 @@ static int sa1100fb_probe(struct platform_device *pdev)
failed: failed:
if (fbi) if (fbi)
iounmap(fbi->base); iounmap(fbi->base);
if (fbi->clk)
clk_put(fbi->clk);
release_mem_region(res->start, resource_size(res)); release_mem_region(res->start, resource_size(res));
return ret; return ret;
} }
......
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