Skip to content
Commit f3450c33 authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman
Browse files

drm/tegra: vic: Fix build warning when CONFIG_PM=n



[ Upstream commit b5d5288a ]

drivers/gpu/drm/tegra/vic.c:326:12: error: ‘vic_runtime_suspend’ defined but not used [-Werror=unused-function]
 static int vic_runtime_suspend(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tegra/vic.c:292:12: error: ‘vic_runtime_resume’ defined but not used [-Werror=unused-function]
 static int vic_runtime_resume(struct device *dev)
            ^~~~~~~~~~~~~~~~~~

Mark it as __maybe_unused.

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Stable-dep-of: c7860cbe ("drm/tegra: Fix vmapping of prime buffers")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 820b689b
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