summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-05-12 15:19:47 +0200
committerWolfram Sang <wsa@the-dreams.de>2013-05-18 11:55:30 +0200
commit849d34571fee01dc45dd4dc9cd13d748c86762df (patch)
treedab245231058f615fa1a7e823c0c1717f39a3187 /drivers/gpu/host1x
parent56261c544da785a3da46db4d033242618be50cce (diff)
downloadop-kernel-dev-849d34571fee01dc45dd4dc9cd13d748c86762df.zip
op-kernel-dev-849d34571fee01dc45dd4dc9cd13d748c86762df.tar.gz
drivers/gpu/host1x/drm: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to duplicate this in the driver. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/gpu/host1x')
-rw-r--r--drivers/gpu/host1x/drm/dc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/host1x/drm/dc.c b/drivers/gpu/host1x/drm/dc.c
index 1e20603..8c04943 100644
--- a/drivers/gpu/host1x/drm/dc.c
+++ b/drivers/gpu/host1x/drm/dc.c
@@ -1128,11 +1128,6 @@ static int tegra_dc_probe(struct platform_device *pdev)
return err;
regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!regs) {
- dev_err(&pdev->dev, "failed to get registers\n");
- return -ENXIO;
- }
-
dc->regs = devm_ioremap_resource(&pdev->dev, regs);
if (IS_ERR(dc->regs))
return PTR_ERR(dc->regs);
OpenPOWER on IntegriCloud