From patchwork Wed Apr 5 16:52:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Priit Laes X-Patchwork-Id: 9664727 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2F28960353 for ; Wed, 5 Apr 2017 16:53:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16A0F28579 for ; Wed, 5 Apr 2017 16:53:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B5BA2859F; Wed, 5 Apr 2017 16:53:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,DKIM_VALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9F17C28579 for ; Wed, 5 Apr 2017 16:53:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=qeLrMvKqXbpaIXQ1DN4u5G0TlOlLt6xjbDj+rEyAej0=; b=YqU dQfzzZsW7xrDnB3lqgS58I9VCcRL313wXrzijnF+fvkZHQA8/OTPrVhwCKP8IVC2M9YJKSXoi+N1X WpcxaqMi1TtW3XyiLfQ0+d3cpFmVqxuMBTy2FOUdbKfe4sbnAxXF/z7tge5tOWRm5KgA6Djd4i0zC x8RTadvWTmQL9YRRl6o7aLmX4h6SLN8E71DsUzbW8vh1HW658GEPZSCXjmFyOOWkrgCII/ccxfnHI JHxLa06evYAvQWlFskHadNrrY/exLiZfjZcovOz0PH/qLSXY54aGmDHDJ+htMYJPouRTpbm5ja9Wv ffIyIlSNSYdDJQi7tBekqZXz9Ewlvtg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cvoB3-0005ra-Gv; Wed, 05 Apr 2017 16:53:01 +0000 Received: from plaes.org ([188.166.43.21]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cvoAz-0005ov-5W for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2017 16:52:58 +0000 Received: from localhost (82.131.31.173.cable.starman.ee [82.131.31.173]) by plaes.org (Postfix) with ESMTPSA id 7817340843; Wed, 5 Apr 2017 16:52:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=plaes.org; s=mail; t=1491411150; bh=CLzFglV6EELMS72VSislG9o2uph9EcwFPUQo7XcB9iA=; h=From:To:Cc:Subject:Date:From; b=ZvC1ZPHkiJBLtKVJNGCvPUc3VYDM5Xw1Zpya3ANC4V30wVgGfCcCHcc2HHvgQxYMt 01dxY7QX2tZ2p3G2nAHZh83XK4OQ0b4qaZtEChu5eebhNB5JkAFY0kFHn59K4FwmuW jczb616di3C+u3DpANrqoGgBV8IhM3+u9XpJEXumMkGTFhMMkmbggtOzUIFM2PwQHQ tyj6GpIBOxq63ucPVrm6cROY1wjvRYZFlSqzhQ7nlkLQ00BELaJpSTsmqIo2Gpt9lp K7VAVctZGPvs7F+X+WsbVi7vNZ4+vi7p0BMTDHrl8WBcmKjQUTd+AIsDGnj402B87a 2CljdWSr+GR+w== From: Priit Laes To: linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: sunxi-ng: Display index when clock registration fails Date: Wed, 5 Apr 2017 19:52:27 +0300 Message-Id: <20170405165227.6985-1-plaes@plaes.org> X-Mailer: git-send-email 2.9.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170405_095257_437159_C8BA88EA X-CRM114-Status: UNSURE ( 7.61 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Turquette , Maxime Ripard , Priit Laes , Stephen Boyd , Chen-Yu Tsai MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add clock index to clock registration failure message. Clock name is sometimes not available, when things go really wrong. Signed-off-by: Priit Laes --- drivers/clk/sunxi-ng/ccu_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu_common.c b/drivers/clk/sunxi-ng/ccu_common.c index 8a47baf..188fa50 100644 --- a/drivers/clk/sunxi-ng/ccu_common.c +++ b/drivers/clk/sunxi-ng/ccu_common.c @@ -63,8 +63,8 @@ int sunxi_ccu_probe(struct device_node *node, void __iomem *reg, ret = clk_hw_register(NULL, hw); if (ret) { - pr_err("Couldn't register clock %s\n", - clk_hw_get_name(hw)); + pr_err("Couldn't register clock %d - %s\n", + i, clk_hw_get_name(hw)); goto err_clk_unreg; } }