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: 9664735 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 DEFD260365 for ; Wed, 5 Apr 2017 16:56:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D12E82859E for ; Wed, 5 Apr 2017 16:56:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5D75285A5; Wed, 5 Apr 2017 16:56:04 +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=-6.0 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB96B285A1 for ; Wed, 5 Apr 2017 16:56:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932461AbdDEQyH (ORCPT ); Wed, 5 Apr 2017 12:54:07 -0400 Received: from plaes.org ([188.166.43.21]:33079 "EHLO plaes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753494AbdDEQwc (ORCPT ); Wed, 5 Apr 2017 12:52:32 -0400 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 Cc: Maxime Ripard , Chen-Yu Tsai , Michael Turquette , Stephen Boyd , Priit Laes 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 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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; } }