projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fca5ec
)
drm/stm: dsi: Remove unnecessary platform_get_resource() error check
author
Fabio Estevam
<
[email protected]
>
Mon, 18 Dec 2017 13:02:28 +0000
(11:02 -0200)
committer
Benjamin Gaignard
<
[email protected]
>
Tue, 19 Dec 2017 14:23:25 +0000
(15:23 +0100)
devm_ioremap_resource() already checks if the resource is NULL, so
remove the unnecessary platform_get_resource() error check.
Cc: Philippe Cornu <
[email protected]
>
Signed-off-by: Fabio Estevam <
[email protected]
>
Acked-by: Philippe Cornu <
[email protected]
>
Signed-off-by: Benjamin Gaignard <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
index 82dcb20cdaa34df23a8eb3144c51d379e149ec29..fd02506274dab996a08e70e1e04db3cd5af0d18c 100644
(file)
--- a/
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
+++ b/
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
@@
-290,11
+290,6
@@
static int dw_mipi_dsi_stm_probe(struct platform_device *pdev)
return -ENOMEM;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res) {
- DRM_ERROR("Unable to get resource\n");
- return -ENODEV;
- }
-
dsi->base = devm_ioremap_resource(dev, res);
if (IS_ERR(dsi->base)) {
DRM_ERROR("Unable to get dsi registers\n");