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:
641a2fe
)
drm/exynos: rotator: Clock control is unused if !PM
author
Thierry Reding
<
[email protected]
>
Thu, 24 Sep 2015 10:14:15 +0000
(12:14 +0200)
committer
Inki Dae
<
[email protected]
>
Wed, 30 Sep 2015 07:44:14 +0000
(16:44 +0900)
Protect the rotator_clk_crtl() function with an #ifdef CONFIG_PM guard
to avoid "defined but not used" warnings.
Signed-off-by: Thierry Reding <
[email protected]
>
Reviewed-by: Andrzej Hajda <
[email protected]
>
Signed-off-by: Inki Dae <
[email protected]
>
drivers/gpu/drm/exynos/exynos_drm_rotator.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/exynos/exynos_drm_rotator.c
b/drivers/gpu/drm/exynos/exynos_drm_rotator.c
index 425e7062538812c0613c055b9b4fdeea709c4be0..2f5c118f4c8ef5ea27a68532756ca77549e325f4 100644
(file)
--- a/
drivers/gpu/drm/exynos/exynos_drm_rotator.c
+++ b/
drivers/gpu/drm/exynos/exynos_drm_rotator.c
@@
-786,6
+786,7
@@
static int rotator_remove(struct platform_device *pdev)
return 0;
}
+#ifdef CONFIG_PM
static int rotator_clk_crtl(struct rot_context *rot, bool enable)
{
if (enable) {
@@
-822,7
+823,6
@@
static int rotator_resume(struct device *dev)
}
#endif
-#ifdef CONFIG_PM
static int rotator_runtime_suspend(struct device *dev)
{
struct rot_context *rot = dev_get_drvdata(dev);