diff options
Diffstat (limited to 'drivers/gpu/drm/tegra/host1x.c')
-rw-r--r-- | drivers/gpu/drm/tegra/host1x.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 | ||