projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c93075
)
drm/tegra: Don't check resource with devm_ioremap_resource()
author
Wolfram Sang
<wsa@the-dreams.de>
Tue, 14 Jan 2014 11:58:54 +0000
(12:58 +0100)
committer
Thierry Reding
<treding@nvidia.com>
Tue, 14 Jan 2014 13:34:14 +0000
(14:34 +0100)
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>
drivers/gpu/drm/tegra/hdmi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/tegra/hdmi.c
b/drivers/gpu/drm/tegra/hdmi.c
index bc9cb1ac709b197f628bd585c875ee1ba7c95dc3..6928015d11a49e9fd6e499aed2ed5f02d6d1730e 100644
(file)
--- 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);