diff options
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/venc.c')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/dss/venc.c | 11 | 
1 files changed, 4 insertions, 7 deletions
| diff --git a/drivers/gpu/drm/omapdrm/dss/venc.c b/drivers/gpu/drm/omapdrm/dss/venc.c index e522c17955d0..4480b69ab5a7 100644 --- a/drivers/gpu/drm/omapdrm/dss/venc.c +++ b/drivers/gpu/drm/omapdrm/dss/venc.c @@ -806,7 +806,6 @@ static const struct soc_device_attribute venc_soc_devices[] = {  static int venc_probe(struct platform_device *pdev)  {  	struct venc_device *venc; -	struct resource *venc_mem;  	int r;  	venc = kzalloc(sizeof(*venc), GFP_KERNEL); @@ -823,8 +822,7 @@ static int venc_probe(struct platform_device *pdev)  	venc->config = &venc_config_pal_trm; -	venc_mem = platform_get_resource(venc->pdev, IORESOURCE_MEM, 0); -	venc->base = devm_ioremap_resource(&pdev->dev, venc_mem); +	venc->base = devm_platform_ioremap_resource(pdev, 0);  	if (IS_ERR(venc->base)) {  		r = PTR_ERR(venc->base);  		goto err_free; @@ -881,7 +879,7 @@ static int venc_remove(struct platform_device *pdev)  	return 0;  } -static int venc_runtime_suspend(struct device *dev) +static __maybe_unused int venc_runtime_suspend(struct device *dev)  {  	struct venc_device *venc = dev_get_drvdata(dev); @@ -891,7 +889,7 @@ static int venc_runtime_suspend(struct device *dev)  	return 0;  } -static int venc_runtime_resume(struct device *dev) +static __maybe_unused int venc_runtime_resume(struct device *dev)  {  	struct venc_device *venc = dev_get_drvdata(dev); @@ -902,8 +900,7 @@ static int venc_runtime_resume(struct device *dev)  }  static const struct dev_pm_ops venc_pm_ops = { -	.runtime_suspend = venc_runtime_suspend, -	.runtime_resume = venc_runtime_resume, +	SET_RUNTIME_PM_OPS(venc_runtime_suspend, venc_runtime_resume, NULL)  	SET_LATE_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)  }; |