From patchwork Sun Jul 20 14:01:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: weiyj_lk@163.com X-Patchwork-Id: 4591011 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 35F3DC0514 for ; Sun, 20 Jul 2014 14:02:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7605E20115 for ; Sun, 20 Jul 2014 14:02:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AD2712010E for ; Sun, 20 Jul 2014 14:02:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751529AbaGTOCY (ORCPT ); Sun, 20 Jul 2014 10:02:24 -0400 Received: from m12-17.163.com ([220.181.12.17]:54634 "EHLO m12-17.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750888AbaGTOCX (ORCPT ); Sun, 20 Jul 2014 10:02:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=Ypd+SgSTT0B2MmMpcS mM5ahO057bHwUe8MhPNQcNvX8=; b=AqDFZmIf9i1dFiawl+kdpGuwn+OakZYmaM YQWwXtLs35TUuVcnmCQKbbRLjMtWoZHMKYNu7WXOo3u4ia4N4TSe7OSzB2kbcQLd i8lqSfKQPL61HC1vY+c33K1QQQtQ25YfJkGVXOw0kv0ExhyizmDEU3rW6JNPbMmM gfKYk2r7M= Received: from localhost.localdomain.localdomain (unknown [49.77.206.80]) by smtp13 (Coremail) with SMTP id EcCowEAZykbHy8tTHsruAw--.542S2; Sun, 20 Jul 2014 22:01:44 +0800 (CST) X-Coremail-DSSMTP: 49.77.206.80 From: weiyj_lk@163.com To: Heiko Stuebner , Mark Brown , Grant Likely , Rob Herring Cc: Wei Yongjun , linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org Subject: [PATCH -next] spi/rockchip: remove redundant dev_err call in rockchip_spi_probe() Date: Sun, 20 Jul 2014 22:01:42 +0800 Message-Id: <1405864902-14056-1-git-send-email-weiyj_lk@163.com> X-Mailer: git-send-email 1.9.3 X-CM-TRANSID: EcCowEAZykbHy8tTHsruAw--.542S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Wr4kCw4kuF47tr4DGr45Jrb_yoWfJrbEka yDur4xWws5JrZaya4fW343A3yavw4v9rykWFsFvFy2qa4DX3Wjvr1kZr17JF1jv392kFsr Cr1aqr4jvryrCjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUYaoGPUUUUU== X-Originating-IP: [49.77.206.80] X-CM-SenderInfo: pzhl5yxbonqiywtou0bp/1tbiNQXO1lHZXd3Z+wAAsC Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.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/spi/spi-rockchip.c | 1 - 1 file changed, 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-spi" 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/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 72fb287..171353b 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c @@ -585,7 +585,6 @@ static int rockchip_spi_probe(struct platform_device *pdev) mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); rs->regs = devm_ioremap_resource(&pdev->dev, mem); if (IS_ERR(rs->regs)) { - dev_err(&pdev->dev, "Failed to map SPI region\n"); ret = PTR_ERR(rs->regs); goto err_ioremap_resource; }