From patchwork Sun Mar 26 17:20:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Priit Laes X-Patchwork-Id: 9645155 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 95DDC601E9 for ; Sun, 26 Mar 2017 18:35:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76C6D27DA4 for ; Sun, 26 Mar 2017 18:35:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 581AC27F81; Sun, 26 Mar 2017 18:35:56 +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 1019127DA4 for ; Sun, 26 Mar 2017 18:35:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751744AbdCZRWY (ORCPT ); Sun, 26 Mar 2017 13:22:24 -0400 Received: from plaes.org ([188.166.43.21]:35634 "EHLO plaes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751888AbdCZRUx (ORCPT ); Sun, 26 Mar 2017 13:20:53 -0400 Received: from localhost (82.131.31.173.cable.starman.ee [82.131.31.173]) by plaes.org (Postfix) with ESMTPSA id 63EBC44B61; Sun, 26 Mar 2017 17:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=plaes.org; s=mail; t=1490548840; bh=D+lsWEJuBnd0JZe6QOP0Hl6AvBaqFgNWdQRg7/FA658=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=oagC4NZJQpZfCF3t/856TEoP8va7AQOaRy2MXAUf+9/C2eIn1DvphoUDrCtY65P9x OftmOzrOPIOFvdGFxngoXoERTR6kP2N7nvMyYzbTEzQM4Ox55UR3TYQv08Ni5MFsm8 6XhRsI6QMx69FX1h8ppVvvxHQ8DvI7Kd1/QaMXppaELadVVRA5de6d9vAQVIvX5nmK U2OmqvMhrVhKRiY1oC4tf6s6PcGVITaWAjcO2L5tbqTzKMu08APRabG7Ftc02aJ9NU t1Z+Xa6QbL054cqaM+zvyvhP6fD/41PnQp2plu5bNSEr9Omy/jxhQJp3kuQr8gRFUR jtFR4uChPPlmQ== From: Priit Laes To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org Cc: linux-sunxi@googlegroups.com, Icenowy Zheng , Russell King , Chen-Yu Tsai , Maxime Ripard , Mark Rutland , Rob Herring , Stephen Boyd , Michael Turquette , Philipp Zabel , Priit Laes Subject: [PATCH v2 6/6] clk: sunxi-ng: Display index when clock registration fails Date: Sun, 26 Mar 2017 20:20:21 +0300 Message-Id: X-Mailer: git-send-email 2.9.3 In-Reply-To: References: In-Reply-To: References: 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. 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; } }