From patchwork Sat Jun 20 00:51:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 6649961 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C7CCF9F326 for ; Sat, 20 Jun 2015 00:51:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 33CCB20893 for ; Sat, 20 Jun 2015 00:51:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 87F4520888 for ; Sat, 20 Jun 2015 00:51:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754270AbbFTAvj (ORCPT ); Fri, 19 Jun 2015 20:51:39 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:34067 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753651AbbFTAvi (ORCPT ); Fri, 19 Jun 2015 20:51:38 -0400 Received: by lbbti3 with SMTP id ti3so81023445lbb.1 for ; Fri, 19 Jun 2015 17:51:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=e/eN7C0I3SlVxg6iTeuFGrIHkuLrl5/DuALEpjTWrek=; b=GmcU9gIbY7aTMhZqQvxt2YWvH0n8EtFYyoJgZ8QsnpuEVBWAXbCAsNXlWWtLgHKkCF rsH7jT0NU9b4GCedILSoycHrl4ER5afXSpwuY4OIRn6K3p+BnnOPGFcfyqtnTqx564Zt TXmfqEf6c2Swtu5BOWTuAjFhkKamVUYs84ywZMyTBb+y01+vnTo7OWEp4NgoWwRz6Yff PEXw0KrMhHNvFsnmN4KFQoPKqVt8V772719LmZ1J+WEMQV5H+EtudM2n4Mbpry3kSgxa DOwGw/uqzFvk/0NyozXYcnWjZTqZMDVk6G20OeNWPz9QR7b3ng1WmJARQqKAhY4Pk5yz risQ== X-Gm-Message-State: ALoCoQnWgUPMpeEGjgUmNINbykikOLkvUMBftMpMBv/3tK3V+npOhRERAeiGwththQ3pRX+kwL7N X-Received: by 10.152.8.102 with SMTP id q6mr19888938laa.27.1434761497090; Fri, 19 Jun 2015 17:51:37 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp83-237-255-137.pppoe.mtu-net.ru. [83.237.255.137]) by mx.google.com with ESMTPSA id ox10sm2854060lbc.30.2015.06.19.17.51.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jun 2015 17:51:36 -0700 (PDT) From: Sergei Shtylyov To: netdev@vger.kernel.org, wg@grandegger.com, mkl@pengutronix.de, linux-can@vger.kernel.org Cc: linux-sh@vger.kernel.org Subject: [PATCH 2/2] rcar_can: unify error messages Date: Sat, 20 Jun 2015 03:51:34 +0300 Message-ID: <2511974.9a3ucLkyEa@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.7 (Linux/4.0.4-202.fc21.x86_64; KDE/4.14.9; x86_64; ; ) In-Reply-To: <1593397.kKIHxKLe5s@wasted.cogentembedded.com> References: <1593397.kKIHxKLe5s@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 All the error messages in the driver but the ones from devm_clk_get() failures use similar format. Make those two messages consitent with others. Signed-off-by: Sergei Shtylyov --- drivers/net/can/rcar_can.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in Index: linux-can/drivers/net/can/rcar_can.c =================================================================== --- linux-can.orig/drivers/net/can/rcar_can.c +++ linux-can/drivers/net/can/rcar_can.c @@ -785,7 +785,8 @@ static int rcar_can_probe(struct platfor priv->clk = devm_clk_get(&pdev->dev, "clkp1"); if (IS_ERR(priv->clk)) { err = PTR_ERR(priv->clk); - dev_err(&pdev->dev, "cannot get peripheral clock: %d\n", err); + dev_err(&pdev->dev, "cannot get peripheral clock, error %d\n", + err); goto fail_clk; } @@ -797,7 +798,7 @@ static int rcar_can_probe(struct platfor priv->can_clk = devm_clk_get(&pdev->dev, clock_names[clock_select]); if (IS_ERR(priv->can_clk)) { err = PTR_ERR(priv->can_clk); - dev_err(&pdev->dev, "cannot get CAN clock: %d\n", err); + dev_err(&pdev->dev, "cannot get CAN clock, error %d\n", err); goto fail_clk; }