From patchwork Tue Apr 25 06:34:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9697565 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 057EC601D3 for ; Tue, 25 Apr 2017 06:34:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC41728447 for ; Tue, 25 Apr 2017 06:34:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEF222844E; Tue, 25 Apr 2017 06:34:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B87C28447 for ; Tue, 25 Apr 2017 06:34:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S980792AbdDYGew (ORCPT ); Tue, 25 Apr 2017 02:34:52 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34422 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S980787AbdDYGev (ORCPT ); Tue, 25 Apr 2017 02:34:51 -0400 Received: by mail-pf0-f196.google.com with SMTP id g23so8070969pfj.1 for ; Mon, 24 Apr 2017 23:34:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LYASks8Peiw0X+r4/L3bjps6JkYhmkR2Q5NujhbU+FQ=; b=TWzlAJghDW0iloWtWhfZvWSHzgfHbLE/HxfN+n105iLIGb42TBYbv2F+n5w0eqFGh4 WbHzrT/qZYuPdAOS34MqH8ifMGr69RQw2uhAQ+ZHg0CtRZpJ2HFHbKbfuVr52OmSd2gQ UhjLVQub8Zcd0LkWxSRX7rIKeJo/7nqt4FC4JopUjjCBWM8CIH+z70W/g5vj2sX6WJyi QPpbdYRsV95wI67abopsuQXeCIzFOSB1wSZtbtqqTLU6CVaytxg596/T6R3/ZC8k2qVq LHzW/9tIVn7VmPY+Ly/g7cpXnsaY4Gjr+sR74NYuGFRAXVtTIwOwcdUI4nZiTmiH0xTG Ly5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LYASks8Peiw0X+r4/L3bjps6JkYhmkR2Q5NujhbU+FQ=; b=FPADYKgCZHgMZBeGHr/FQb39didWSdGM7L3kCxSH0DYTb0WPJWjsphdilIPcKF85D7 /n4/v5fQ1XS/5Vua8mFh9hNZGxrOTPM052wsgOKBUDfPk7OSe6uISjwpgM2OqnB+RJhU fT8i327Rhc4aHAufJl9ER4MWr7o8Q7D7G18lXKb3Zpo58EmtMZ9uUpzYDpgcM0MCfIEt 0wl63awvSqu9W8XW8lXGKtYppqKz3RiNKknImShhFsws58SF4Zy7UNEVj/rBLx1Ka1mI 7usrqwbmL4WLrR6vZwPXkkQUet+iwBqkgx3TsM4UcImCGB9N4mc7BQY6U3wFzFg7L6L/ UUOQ== X-Gm-Message-State: AN3rC/4SgOflWgitG4HeGmVph3161HwVgSxpxReD9bk91aBobcRkXC1j YZTy+elZURWLq8oIQJY= X-Received: by 10.84.222.129 with SMTP id x1mr36684723pls.44.1493102091230; Mon, 24 Apr 2017 23:34:51 -0700 (PDT) Received: from localhost.localdomain.localdomain (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id x65sm34083728pfb.111.2017.04.24.23.34.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Apr 2017 23:34:50 -0700 (PDT) From: Wei Yongjun To: Hu Ziji , Adrian Hunter , Ulf Hansson Cc: Wei Yongjun , linux-mmc@vger.kernel.org Subject: [PATCH -next] mmc: sdhci-xenon: Remove redundant dev_err call in get_dt_pad_ctrl_data() Date: Tue, 25 Apr 2017 06:34:46 +0000 Message-Id: <20170425063446.32726-1-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun --- drivers/mmc/host/sdhci-xenon-phy.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mmc/host/sdhci-xenon-phy.c b/drivers/mmc/host/sdhci-xenon-phy.c index 4bdbcd3..d43841e 100644 --- a/drivers/mmc/host/sdhci-xenon-phy.c +++ b/drivers/mmc/host/sdhci-xenon-phy.c @@ -639,11 +639,8 @@ static int get_dt_pad_ctrl_data(struct sdhci_host *host, params->pad_ctrl.reg = devm_ioremap_resource(mmc_dev(host->mmc), &iomem); - if (IS_ERR(params->pad_ctrl.reg)) { - dev_err(mmc_dev(host->mmc), "Unable to get SoC PHY PAD ctrl register for %s\n", - np->name); + if (IS_ERR(params->pad_ctrl.reg)) return PTR_ERR(params->pad_ctrl.reg); - } ret = of_property_read_string(np, "marvell,pad-type", &name); if (ret) {