提交 a13f1dc4 编写于 作者: T Thierry Reding

drm/tegra: Use SIMPLE_DEV_PM_OPS

Use this macro to reduce some of the boilerplate.
Signed-off-by: NThierry Reding <treding@nvidia.com>
上级 cdc630b6
...@@ -1038,9 +1038,8 @@ static int host1x_drm_resume(struct device *dev) ...@@ -1038,9 +1038,8 @@ static int host1x_drm_resume(struct device *dev)
} }
#endif #endif
static const struct dev_pm_ops host1x_drm_pm_ops = { static SIMPLE_DEV_PM_OPS(host1x_drm_pm_ops, host1x_drm_suspend,
SET_SYSTEM_SLEEP_PM_OPS(host1x_drm_suspend, host1x_drm_resume) host1x_drm_resume);
};
static const struct of_device_id host1x_drm_subdevs[] = { static const struct of_device_id host1x_drm_subdevs[] = {
{ .compatible = "nvidia,tegra20-dc", }, { .compatible = "nvidia,tegra20-dc", },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册