diff options
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/dsi.c')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/dss/dsi.c | 14 | 
1 files changed, 5 insertions, 9 deletions
| diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c index 503b5d4bf2c2..a6845856cbce 100644 --- a/drivers/gpu/drm/omapdrm/dss/dsi.c +++ b/drivers/gpu/drm/omapdrm/dss/dsi.c @@ -4884,7 +4884,6 @@ static int dsi_probe(struct platform_device *pdev)  	struct device *dev = &pdev->dev;  	struct dsi_data *dsi;  	struct resource *dsi_mem; -	struct resource *res;  	unsigned int i;  	int r; @@ -4921,13 +4920,11 @@ static int dsi_probe(struct platform_device *pdev)  	if (IS_ERR(dsi->proto_base))  		return PTR_ERR(dsi->proto_base); -	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "phy"); -	dsi->phy_base = devm_ioremap_resource(dev, res); +	dsi->phy_base = devm_platform_ioremap_resource_byname(pdev, "phy");  	if (IS_ERR(dsi->phy_base))  		return PTR_ERR(dsi->phy_base); -	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pll"); -	dsi->pll_base = devm_ioremap_resource(dev, res); +	dsi->pll_base = devm_platform_ioremap_resource_byname(pdev, "pll");  	if (IS_ERR(dsi->pll_base))  		return PTR_ERR(dsi->pll_base); @@ -5061,7 +5058,7 @@ static int dsi_remove(struct platform_device *pdev)  	return 0;  } -static int dsi_runtime_suspend(struct device *dev) +static __maybe_unused int dsi_runtime_suspend(struct device *dev)  {  	struct dsi_data *dsi = dev_get_drvdata(dev); @@ -5074,7 +5071,7 @@ static int dsi_runtime_suspend(struct device *dev)  	return 0;  } -static int dsi_runtime_resume(struct device *dev) +static __maybe_unused int dsi_runtime_resume(struct device *dev)  {  	struct dsi_data *dsi = dev_get_drvdata(dev); @@ -5086,8 +5083,7 @@ static int dsi_runtime_resume(struct device *dev)  }  static const struct dev_pm_ops dsi_pm_ops = { -	.runtime_suspend = dsi_runtime_suspend, -	.runtime_resume = dsi_runtime_resume, +	SET_RUNTIME_PM_OPS(dsi_runtime_suspend, dsi_runtime_resume, NULL)  	SET_LATE_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)  }; |