drm/gma500: Make use of the helper macro SET_RUNTIME_PM_OPS()
Subsystems (3)
PATCH 1/1 drm/gma500: Make use of the helper macro SET_RUNTIME_PM_OPS()
Use the helper macro SET_RUNTIME_PM_OPS() instead of the verbose operators ".runtime_suspend/.runtime_resume/.runtime_idle", because the SET_RUNTIME_PM_OPS() is a nice helper macro that could be brought in to make code a little clearer, a little more concise.
Signed-off-by Cai Huoqing <[email protected]>
--- drivers/gpu/drm/gma500/psb_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/gma500/psb_drv.c +1 -3
@@ -489,14 +489,12 @@ static void psb_pci_remove(struct pci_dev *pdev) }static const struct dev_pm_ops psb_pm_ops = { +SET_RUNTIME_PM_OPS (psb_runtime_suspend, psb_runtime_resume, psb_runtime_idle) .resume = gma_power_resume, .suspend = gma_power_suspend, .thaw = gma_power_thaw, .freeze = gma_power_freeze, .restore = gma_power_restore, - .runtime_suspend = psb_runtime_suspend, - .runtime_resume = psb_runtime_resume, - .runtime_idle = psb_runtime_idle, };static const struct file_operations psb_gem_fops = {
Signature · 1 line
2.25.1