Skip to content

Commit

Permalink
drm/tegra: Don't check resource with devm_ioremap_resource()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wolfram Sang authored and Thierry Reding committed Jan 14, 2014
1 parent 4c93075 commit ff5009e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/tegra/hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ff5009e

Please sign in to comment.