From patchwork Mon Feb 17 16:57:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Genoud X-Patchwork-Id: 3663921 Return-Path: X-Original-To: patchwork-linux-arm@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 66C9BBF13A for ; Mon, 17 Feb 2014 17:00:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9741C20200 for ; Mon, 17 Feb 2014 17:00:09 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 94F042020F for ; Mon, 17 Feb 2014 17:00:08 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFRXD-0002Yp-GZ; Mon, 17 Feb 2014 16:59:12 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFRWz-0004iH-3L; Mon, 17 Feb 2014 16:58:57 +0000 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFRWS-0004dC-0f for linux-arm-kernel@lists.infradead.org; Mon, 17 Feb 2014 16:58:24 +0000 Received: by mail-wi0-f175.google.com with SMTP id hm4so2620099wib.14 for ; Mon, 17 Feb 2014 08:58:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rvwvRvR1cw1GWiedgKX0Z13pMZs+VOPRP3M4lse+jAc=; b=o3BRBhsdT9undhNvOZyt6CrnwZVPawQVSyqgeSi9p+aF3fEiqHC6I9eGRczAPZ3ZId gQNJ0euk96RxemlJq/g4YNuPVu/m4Eq9RSOvjPaYeXIXf0ClvLbHbSH9dvlDDySNoeDk v5yGAwvmy1FrMRpbG817fvgOxXn7M+sUJne6FgKeJaQdllEgEqHF/slgYBt9qNFXwBXk SGf3LFpyojT8Sm/A3PvC9h9NJrEbmWGk2Cp2M5b2u1E9d6QP59qfsAxvNkqNzGXR3nDb jx0kUUnF/SG/92vE1uuca56OB7wjULsc/0FQKfOJ9gECCopsAyGc+r/QUbcSeAq/MdBr y6wQ== X-Received: by 10.194.170.133 with SMTP id am5mr14280339wjc.42.1392656282296; Mon, 17 Feb 2014 08:58:02 -0800 (PST) Received: from lnx-rg.pr (lyon.paratronic.fr. [213.41.177.106]) by mx.google.com with ESMTPSA id cm5sm33980500wid.5.2014.02.17.08.58.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Feb 2014 08:58:01 -0800 (PST) From: Richard Genoud To: Greg Kroah-Hartman Subject: [PATCH v3 2/7] tty/serial: at91: use dev_err instead of printk Date: Mon, 17 Feb 2014 17:57:22 +0100 Message-Id: <1392656247-3351-3-git-send-email-richard.genoud@gmail.com> X-Mailer: git-send-email 1.8.5 In-Reply-To: <1392656247-3351-1-git-send-email-richard.genoud@gmail.com> References: <1392656247-3351-1-git-send-email-richard.genoud@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140217_115824_177611_F025A01A X-CRM114-Status: GOOD ( 10.71 ) X-Spam-Score: -2.0 (--) Cc: Alexander Shiyan , Richard Genoud , Linus Walleij , Nicolas Ferre , linux-serial@vger.kernel.org, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 For better consistency. Signed-off-by: Richard Genoud --- drivers/tty/serial/atmel_serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index 91c0d8839570..ed9621a21d67 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -1549,7 +1549,7 @@ static int atmel_startup(struct uart_port *port) retval = request_irq(port->irq, atmel_interrupt, IRQF_SHARED, tty ? tty->name : "atmel_serial", port); if (retval) { - printk("atmel_serial: atmel_startup - Can't get irq\n"); + dev_err(port->dev, "atmel_startup - Can't get irq\n"); return retval; } @@ -1732,7 +1732,7 @@ static void atmel_serial_pm(struct uart_port *port, unsigned int state, clk_disable_unprepare(atmel_port->clk); break; default: - printk(KERN_ERR "atmel_serial: unknown pm %d\n", state); + dev_err(port->dev, "atmel_serial: unknown pm %d\n", state); } }