From patchwork Tue May 11 09:40:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 434186 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3655034jao; Tue, 11 May 2021 02:40:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6vkm8KfWWJmY9HuDpfgFMJ/5w/P8bIsHN56MYT9vPOEE4qrOA3C70chTqAVx0PbqJ/yel X-Received: by 2002:a05:6402:268c:: with SMTP id w12mr36321815edd.234.1620726024449; Tue, 11 May 2021 02:40:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620726024; cv=none; d=google.com; s=arc-20160816; b=D7IL3tpDdhh5g6NU/cuA4CSYXvVXCIVfJg3q7oeNgujnZhVnJ9cjpDIV45dU61XRBJ +MhkVRRFPKTJT1xYacHjpIV9GNPPn5q+6yn3F4B17Bm8mH34i2XQHY45gLB9LWsWwbqt jyFaGtFzlyZhll4AhyqpDGFaPZfMJmzw35lExeF2/6JAdR2gr4QZs+ZwtOCpB78N18cZ Ma/jrJT8QLKgK26VLanaJe/lFtko1hdc49md2s5PPCGGdSxXTXc7vksPTCbj8EHwbuiP JVyOfzk7W25+4kTZfR9gdFprYEayxncV5YIBrihwV2qvEQ4z2P37vp30cMqLZG5KTuF/ S0Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=5to2Cxf6VYWYzp00ZQ7N3HsOHZs8n4SiVd7cioRva3Y=; b=R/8fwfEkfmZKIUqo2jwcZRVmisUM5+JPtj+kBybM7LNVSoZuFQX5jhZUfjGCGCu5/I LnJkhmZu7Ew2ZVs+q6qUWaGgJ+YR1NM+kPnZdtVNqffkHbflFMst/R9oh2T+UXB+V5Fe ZJqaQ9srp3BnnHlOcRqzz5GjKy7i7PEyPJ3UpzE99iLUwtLkJvDnXJ3ZFtgEygygsr4j xHGVjLcgMyEhIyXx7vnLq9fASjZYcmzKQzbA0GeiiRzrT8s2KKhgl791LTcfgnod4Vo9 bAY+60tlKxXvOhj4V3cCzQlkCjhBCRwlDEAPauSzGoShSimM4tJbeluIsW1AR5Nxxvvs pRFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb13si2522925edb.95.2021.05.11.02.40.24; Tue, 11 May 2021 02:40:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231290AbhEKJl3 (ORCPT + 4 others); Tue, 11 May 2021 05:41:29 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2561 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231332AbhEKJl0 (ORCPT ); Tue, 11 May 2021 05:41:26 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FfXrz1SzBzkWQQ; Tue, 11 May 2021 17:37:39 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.72) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Tue, 11 May 2021 17:40:09 +0800 From: Zhen Lei To: Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , David Airlie , Daniel Vetter , Krzysztof Kozlowski , dri-devel , linux-arm-kernel , linux-samsung-soc CC: Zhen Lei Subject: [PATCH 1/1] drm/exynos: Remove redundant error printing in exynos_dsi_probe() Date: Tue, 11 May 2021 17:40:04 +0800 Message-ID: <20210511094004.4726-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org When devm_ioremap_resource() fails, a clear enough error message will be printed by its subfunction __devm_ioremap_resource(). The error information contains the device name, failure cause, and possibly resource information. Therefore, remove the error printing here to simplify code and reduce the binary size. Reported-by: Hulk Robot Signed-off-by: Zhen Lei --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.26.0.106.g9fadedd diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 44e402b7cdfb6e3..2d2fe5ab26e7030 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1786,10 +1786,8 @@ static int exynos_dsi_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); dsi->reg_base = devm_ioremap_resource(dev, res); - if (IS_ERR(dsi->reg_base)) { - dev_err(dev, "failed to remap io region\n"); + if (IS_ERR(dsi->reg_base)) return PTR_ERR(dsi->reg_base); - } dsi->phy = devm_phy_get(dev, "dsim"); if (IS_ERR(dsi->phy)) {