drm/tegra: Use SIMPLE_DEV_PM_OPS
authorThierry Reding <treding@nvidia.com>
Tue, 11 Aug 2015 11:22:44 +0000 (13:22 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Aug 2015 11:47:24 +0000 (13:47 +0200)
Use this macro to reduce some of the boilerplate.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c

index 497b4a07085dcfc891ea4a200424b289299f2aae..2b1b0912679437596833d43359cbdd4467542c45 100644 (file)
@@ -1038,9 +1038,8 @@ static int host1x_drm_resume(struct device *dev)
 }
 #endif
 
-static const struct dev_pm_ops host1x_drm_pm_ops = {
-       SET_SYSTEM_SLEEP_PM_OPS(host1x_drm_suspend, host1x_drm_resume)
-};
+static SIMPLE_DEV_PM_OPS(host1x_drm_pm_ops, host1x_drm_suspend,
+                        host1x_drm_resume);
 
 static const struct of_device_id host1x_drm_subdevs[] = {
        { .compatible = "nvidia,tegra20-dc", },