projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba1d36b
)
video: sa1100fb: use devm_clk_get()
author
Russell King
<
[email protected]
>
Tue, 17 Oct 2017 14:01:12 +0000
(16:01 +0200)
committer
Bartlomiej Zolnierkiewicz
<
[email protected]
>
Tue, 17 Oct 2017 14:01:12 +0000
(16:01 +0200)
Use devm_clk_get() to get the clock for the LCD.
Signed-off-by: Russell King <
[email protected]
>
Signed-off-by: Bartlomiej Zolnierkiewicz <
[email protected]
>
drivers/video/fbdev/sa1100fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/sa1100fb.c
b/drivers/video/fbdev/sa1100fb.c
index 05a80e08dcde2346fe9dac8b60ebdb997d7f1122..1562d7607dd2860750c3e797565048b05d30400c 100644
(file)
--- a/
drivers/video/fbdev/sa1100fb.c
+++ b/
drivers/video/fbdev/sa1100fb.c
@@
-1230,10
+1230,9
@@
static int sa1100fb_probe(struct platform_device *pdev)
if (!fbi)
goto failed;
- fbi->clk = clk_get(&pdev->dev, NULL);
+ fbi->clk =
devm_
clk_get(&pdev->dev, NULL);
if (IS_ERR(fbi->clk)) {
ret = PTR_ERR(fbi->clk);
- fbi->clk = NULL;
goto failed;
}
@@
-1289,8
+1288,6
@@
static int sa1100fb_probe(struct platform_device *pdev)
failed:
if (fbi)
iounmap(fbi->base);
- if (fbi->clk)
- clk_put(fbi->clk);
release_mem_region(res->start, resource_size(res));
return ret;
}