From patchwork Fri Feb 22 05:46:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 10825199 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1113F13B5 for ; Fri, 22 Feb 2019 05:33:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F36AD3159D for ; Fri, 22 Feb 2019 05:33:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E785D31651; Fri, 22 Feb 2019 05:33:08 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 A03133159D for ; Fri, 22 Feb 2019 05:33:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726086AbfBVFdI (ORCPT ); Fri, 22 Feb 2019 00:33:08 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:4251 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725710AbfBVFdI (ORCPT ); Fri, 22 Feb 2019 00:33:08 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 20AFAEDA5A04D4FCC08A; Fri, 22 Feb 2019 13:33:05 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.408.0; Fri, 22 Feb 2019 13:32:57 +0800 From: Wei Yongjun To: Mark Brown , Palmer Dabbelt , "Paul Walmsley" CC: Wei Yongjun , , , Subject: [PATCH -next] spi: sifive: Remove redundant dev_err call in sifive_spi_probe() Date: Fri, 22 Feb 2019 05:46:32 +0000 Message-ID: <20190222054632.4610-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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/spi/spi-sifive.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-sifive.c b/drivers/spi/spi-sifive.c index 961307c4a613..81c5a0363073 100644 --- a/drivers/spi/spi-sifive.c +++ b/drivers/spi/spi-sifive.c @@ -310,7 +310,6 @@ static int sifive_spi_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); spi->regs = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(spi->regs)) { - dev_err(&pdev->dev, "Unable to map IO resources\n"); ret = PTR_ERR(spi->regs); goto put_master; }