diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2014-01-14 12:58:54 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-01-14 14:34:14 +0100 |
commit | ff5009ef8df87908a956412619e4f1bf1078ef5d (patch) | |
tree | 1c7f288c2cd795b89af98fb3e96ff3cebd86d275 | |
parent | 4c9307577ef686e041d1525047ffdebfc465e329 (diff) | |
download | op-kernel-dev-ff5009ef8df87908a956412619e4f1bf1078ef5d.zip op-kernel-dev-ff5009ef8df87908a956412619e4f1bf1078ef5d.tar.gz |
drm/tegra: 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>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | drivers/gpu/drm/tegra/hdmi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index bc9cb1a..6928015 100644 --- a/drivers/gpu/drm/tegra/hdmi.c +++ b/drivers/gpu/drm/tegra/hdmi.c @@ -1418,9 +1418,6 @@ static int tegra_hdmi_probe(struct platform_device *pdev) return err; regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!regs) - return -ENXIO; - hdmi->regs = devm_ioremap_resource(&pdev->dev, regs); if (IS_ERR(hdmi->regs)) return PTR_ERR(hdmi->regs); |