diff options
Diffstat (limited to 'drivers/gpu/drm/tegra')
-rw-r--r-- | drivers/gpu/drm/tegra/dc.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/tegra/hdmi.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/tegra/host1x.c | 6 |
3 files changed, 9 insertions, 11 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index 656b2e3334a6..d365c6dff0fb 100644 --- a/drivers/gpu/drm/tegra/dc.c +++ b/drivers/gpu/drm/tegra/dc.c | |||
@@ -764,11 +764,9 @@ static int tegra_dc_probe(struct platform_device *pdev) | |||
764 | return -ENXIO; | 764 | return -ENXIO; |
765 | } | 765 | } |
766 | 766 | ||
767 | dc->regs = devm_request_and_ioremap(&pdev->dev, regs); | 767 | dc->regs = devm_ioremap_resource(&pdev->dev, regs); |
768 | if (!dc->regs) { | 768 | if (IS_ERR(dc->regs)) |
769 | dev_err(&pdev->dev, "failed to remap registers\n"); | 769 | return PTR_ERR(dc->regs); |
770 | return -ENXIO; | ||
771 | } | ||
772 | 770 | ||
773 | dc->irq = platform_get_irq(pdev, 0); | 771 | dc->irq = platform_get_irq(pdev, 0); |
774 | if (dc->irq < 0) { | 772 | if (dc->irq < 0) { |
diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index e060c7e6434d..266af7879240 100644 --- a/drivers/gpu/drm/tegra/hdmi.c +++ b/drivers/gpu/drm/tegra/hdmi.c | |||
@@ -1259,9 +1259,9 @@ static int tegra_hdmi_probe(struct platform_device *pdev) | |||
1259 | if (!regs) | 1259 | if (!regs) |
1260 | return -ENXIO; | 1260 | return -ENXIO; |
1261 | 1261 | ||
1262 | hdmi->regs = devm_request_and_ioremap(&pdev->dev, regs); | 1262 | hdmi->regs = devm_ioremap_resource(&pdev->dev, regs); |
1263 | if (!hdmi->regs) | 1263 | if (IS_ERR(hdmi->regs)) |
1264 | return -EADDRNOTAVAIL; | 1264 | return PTR_ERR(hdmi->regs); |
1265 | 1265 | ||
1266 | err = platform_get_irq(pdev, 0); | 1266 | err = platform_get_irq(pdev, 0); |
1267 | if (err < 0) | 1267 | if (err < 0) |
diff --git a/drivers/gpu/drm/tegra/host1x.c b/drivers/gpu/drm/tegra/host1x.c index 5d17b113a6fc..92e25a7e00ea 100644 --- a/drivers/gpu/drm/tegra/host1x.c +++ b/drivers/gpu/drm/tegra/host1x.c | |||
@@ -139,9 +139,9 @@ static int tegra_host1x_probe(struct platform_device *pdev) | |||
139 | 139 | ||
140 | host1x->irq = err; | 140 | host1x->irq = err; |
141 | 141 | ||
142 | host1x->regs = devm_request_and_ioremap(&pdev->dev, regs); | 142 | host1x->regs = devm_ioremap_resource(&pdev->dev, regs); |
143 | if (!host1x->regs) { | 143 | if (IS_ERR(host1x->regs)) { |
144 | err = -EADDRNOTAVAIL; | 144 | err = PTR_ERR(host1x->regs); |
145 | goto err; | 145 | goto err; |
146 | } | 146 | } |
147 | 147 | ||