From patchwork Sat Feb 22 18:16:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 3702311 X-Patchwork-Delegate: vinod.koul@intel.com Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0FAD49F382 for ; Sat, 22 Feb 2014 18:17:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3B7012010F for ; Sat, 22 Feb 2014 18:17:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4D1B7200FF for ; Sat, 22 Feb 2014 18:17:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752463AbaBVSRZ (ORCPT ); Sat, 22 Feb 2014 13:17:25 -0500 Received: from fallback8.mail.ru ([94.100.176.136]:60223 "EHLO fallback8.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752511AbaBVSRZ (ORCPT ); Sat, 22 Feb 2014 13:17:25 -0500 Received: from smtp43.i.mail.ru (smtp43.i.mail.ru [94.100.177.103]) by fallback8.mail.ru (mPOP.Fallback_MX) with ESMTP id 976FF517B808 for ; Sat, 22 Feb 2014 22:17:20 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=kI4bgEhjrccY70vs+zYiQnwJQ6tRN/+jcHgePleZmZk=; b=ZUPe/yKzvVcqWdzSSpoQi9vI0bIPRNQ0r+ElqLxrkHcmJqjOWVakNswmRPyBMzJXpF+WGsgIBonjcIQ15TIm0zsEV+YRN+oTbiwON2RGWQn0eIdfyBz0Z/AhCbgRfa9rDAd9/K+igVahF6Jtw7PaYk794diMJ9h27/oucNU7N5s=; Received: from [188.134.40.128] (port=57392 helo=shc.zet) by smtp43.i.mail.ru with esmtpa (envelope-from ) id 1WHH8F-0000rk-1H; Sat, 22 Feb 2014 22:16:59 +0400 From: Alexander Shiyan To: dmaengine@vger.kernel.org Cc: Vinod Koul , Dan Williams , Shawn Guo , Sascha Hauer , Alexander Shiyan Subject: [PATCH 2/4] dma: imx-dma: Use dev_err() for reporting errors Date: Sat, 22 Feb 2014 22:16:46 +0400 Message-Id: <1393093008-19667-2-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1393093008-19667-1-git-send-email-shc_work@mail.ru> References: <1393093008-19667-1-git-send-email-shc_work@mail.ru> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Mras: Ok Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RDNS_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no 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 Signed-off-by: Alexander Shiyan --- drivers/dma/imx-dma.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index 7ef16e8..bc78142 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c @@ -1101,7 +1101,7 @@ static int __init imxdma_probe(struct platform_device *pdev) ret = devm_request_irq(&pdev->dev, irq, dma_irq_handler, 0, "DMA", imxdma); if (ret) { - dev_warn(imxdma->dev, "Can't register IRQ for DMA\n"); + dev_err(imxdma->dev, "Can't register IRQ for DMA\n"); goto err; } @@ -1114,7 +1114,7 @@ static int __init imxdma_probe(struct platform_device *pdev) ret = devm_request_irq(&pdev->dev, irq_err, imxdma_err_handler, 0, "DMAERR", imxdma); if (ret) { - dev_warn(imxdma->dev, "Can't register ERRIRQ for DMA\n"); + dev_err(imxdma->dev, "Can't register ERRIRQ for DMA\n"); goto err; } } @@ -1151,9 +1151,8 @@ static int __init imxdma_probe(struct platform_device *pdev) dma_irq_handler, 0, imxdmac->name, imxdma); if (ret) { - dev_warn(imxdma->dev, "Can't register IRQ %d " - "for DMA channel %d\n", - irq + i, i); + dev_err(imxdma->dev, "Can't register IRQ %d " + "for DMA channel %d\n", irq + i, i); goto err; } init_timer(&imxdmac->watchdog);