OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4da404
)
drm/rockchip: dsi: Remove unnecessary platform_get_resource() error check
author
Fabio Estevam
<fabio.estevam@nxp.com>
Mon, 18 Dec 2017 13:02:26 +0000
(11:02 -0200)
committer
Heiko Stuebner
<heiko@sntech.de>
Sun, 18 Feb 2018 10:14:58 +0000
(11:14 +0100)
devm_ioremap_resource() already checks if the resource is NULL, so
remove the unnecessary platform_get_resource() error check.
Cc: Heiko Stübner <heiko@sntech.de>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link:
https://patchwork.freedesktop.org/patch/msgid/1513602150-7542-3-git-send-email-festevam@gmail.com
drivers/gpu/drm/rockchip/dw-mipi-dsi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c
b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c
index
b1fe063
..
591953c
100644
(file)
--- a/
drivers/gpu/drm/rockchip/dw-mipi-dsi.c
+++ b/
drivers/gpu/drm/rockchip/dw-mipi-dsi.c
@@
-1202,9
+1202,6
@@
static int dw_mipi_dsi_bind(struct device *dev, struct device *master,
return ret;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res)
- return -ENODEV;
-
dsi->base = devm_ioremap_resource(dev, res);
if (IS_ERR(dsi->base))
return PTR_ERR(dsi->base);