From patchwork Sat Feb 22 18:16:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 3702301 X-Patchwork-Delegate: vinod.koul@intel.com Return-Path: X-Original-To: patchwork-dmaengine@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 265B4BF13A for ; Sat, 22 Feb 2014 18:17:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4F6062010F for ; Sat, 22 Feb 2014 18:17:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6DBCF20120 for ; Sat, 22 Feb 2014 18:17:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752538AbaBVSRZ (ORCPT ); Sat, 22 Feb 2014 13:17:25 -0500 Received: from fallback2.mail.ru ([94.100.176.87]:59852 "EHLO fallback2.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752463AbaBVSRY (ORCPT ); Sat, 22 Feb 2014 13:17:24 -0500 Received: from smtp43.i.mail.ru (smtp43.i.mail.ru [94.100.177.103]) by fallback2.mail.ru (mPOP.Fallback_MX) with ESMTP id 2B425FF56F44 for ; Sat, 22 Feb 2014 22:17:21 +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=xeDc+9yIHzcn5C6XKlsUBgZPgU3QpPJeIqawzPWwVrU=; b=hG8XJsedsUNjmtUgZPyQdoiOI8XvoRC/5JfYh/CaE03hwRQIK28vael4tT1m6MoMmqD0vJGWDCmZ3KW4DB4057hlpDGbc2zUaj2Rc21AKkmsm5kC3CQjLObZFwTamT8WHMpVBmJA9xbQhM/22OjbdDGzVy8daouub+cXggQO5KU=; Received: from [188.134.40.128] (port=57392 helo=shc.zet) by smtp43.i.mail.ru with esmtpa (envelope-from ) id 1WHH8F-0000rk-N0; Sat, 22 Feb 2014 22:17:00 +0400 From: Alexander Shiyan To: dmaengine@vger.kernel.org Cc: Vinod Koul , Dan Williams , Shawn Guo , Sascha Hauer , Alexander Shiyan Subject: [PATCH 3/4] dma: imx-dma: Replace printk with dev_* Date: Sat, 22 Feb 2014 22:16:47 +0400 Message-Id: <1393093008-19667-3-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 Use the dev_* message logging API instead of raw printk. Signed-off-by: Alexander Shiyan --- drivers/dma/imx-dma.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index bc78142..609efcf 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c @@ -423,12 +423,12 @@ static irqreturn_t imxdma_err_handler(int irq, void *dev_id) /* Tasklet error handler */ tasklet_schedule(&imxdma->channel[i].dma_tasklet); - printk(KERN_WARNING - "DMA timeout on channel %d -%s%s%s%s\n", i, - errcode & IMX_DMA_ERR_BURST ? " burst" : "", - errcode & IMX_DMA_ERR_REQUEST ? " request" : "", - errcode & IMX_DMA_ERR_TRANSFER ? " transfer" : "", - errcode & IMX_DMA_ERR_BUFFER ? " buffer" : ""); + dev_warn(imxdma->dev, + "DMA timeout on channel %d -%s%s%s%s\n", i, + errcode & IMX_DMA_ERR_BURST ? " burst" : "", + errcode & IMX_DMA_ERR_REQUEST ? " request" : "", + errcode & IMX_DMA_ERR_TRANSFER ? " transfer" : "", + errcode & IMX_DMA_ERR_BUFFER ? " buffer" : ""); } return IRQ_HANDLED; }