dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Estevam <festevam@gmail.com>
To: gustavo@padovan.org
Cc: Fabio Estevam <fabio.estevam@nxp.com>, dri-devel@lists.freedesktop.org
Subject: [PATCH 1/7] drm/bridge/synopsys: dsi: Remove unnecessary platform_get_resource() error check
Date: Mon, 18 Dec 2017 11:02:24 -0200	[thread overview]
Message-ID: <1513602150-7542-1-git-send-email-festevam@gmail.com> (raw)

From: Fabio Estevam <fabio.estevam@nxp.com>

devm_ioremap_resource() already checks if the resource is NULL, so
remove the unnecessary platform_get_resource() error check.

Cc: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
index d9cca4f..5db4cbb 100644
--- a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
+++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
@@ -860,9 +860,6 @@ __dw_mipi_dsi_probe(struct platform_device *pdev,
 
 	if (!plat_data->base) {
 		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-		if (!res)
-			return ERR_PTR(-ENODEV);
-
 		dsi->base = devm_ioremap_resource(dev, res);
 		if (IS_ERR(dsi->base))
 			return ERR_PTR(-ENODEV);
-- 
2.7.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

             reply	other threads:[~2017-12-18 13:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-18 13:02 Fabio Estevam [this message]
2017-12-18 13:02 ` [PATCH 2/7] drm/exynos: decon5433: Remove unnecessary platform_get_resource() error check Fabio Estevam
2017-12-18 13:28   ` Andrzej Hajda
2017-12-18 23:44   ` Inki Dae
2017-12-18 13:02 ` [PATCH 3/7] drm/rockchip: dsi: " Fabio Estevam
2017-12-18 13:02 ` [PATCH 4/7] drm/rockchip: inno_hdmi: " Fabio Estevam
2017-12-18 13:02 ` [PATCH 5/7] drm/stm: dsi: " Fabio Estevam
2017-12-19 14:14   ` Philippe CORNU
2017-12-19 14:28     ` Benjamin Gaignard
2017-12-18 13:02 ` [PATCH 6/7] drm/stm: ltdc: " Fabio Estevam
2017-12-19 14:15   ` Philippe CORNU
2017-12-19 14:28     ` Benjamin Gaignard
2017-12-18 13:02 ` [PATCH 7/7] drm/tegra: vic: " Fabio Estevam
2017-12-19 14:32 ` [PATCH 1/7] drm/bridge/synopsys: dsi: " Philippe CORNU

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1513602150-7542-1-git-send-email-festevam@gmail.com \
    --to=festevam@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=fabio.estevam@nxp.com \
    --cc=gustavo@padovan.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox