Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752223AbbDBGkq (ORCPT ); Thu, 2 Apr 2015 02:40:46 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:35341 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750780AbbDBGkp (ORCPT ); Thu, 2 Apr 2015 02:40:45 -0400 X-AuditID: cbfee68f-f791c6d000004834-b4-551ce46ab497 From: Chanwoo Choi To: mturquette@linaro.org, sboyd@codeaurora.org Cc: linux-kernel@vger.kernel.org, Chanwoo Choi Subject: [PATCH] clk: Show clock rate instead of return value Date: Thu, 02 Apr 2015 15:40:36 +0900 Message-id: <1427956836-31382-1-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.5.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHLMWRmVeSWpSXmKPExsWyRsSkUDfriUyowZXrPBbXvzxntbi8aw6b xdMJF9ksfpzpZnFg8bjc18vkcefaHjaPvi2rGD0+b5ILYInisklJzcksSy3St0vgyujbu4C1 YAF7xf6PLewNjC9Zuxg5OSQETCTO3uhigbDFJC7cW8/WxcjFISSwlFHi/MUHzF2MHGBF55ZL QsSnM0pcXDWJFcL5wijR37CVHaSbTUBLYv+LG2wgtoiAvsTNdUdZQJqZBdwkXr9UAgkLC9hK zJk4EWwZi4CqxLHd88CO4BVwlZi9exY7xBEKEsuWzwSbLyHwmE3i9/urTBANAhLfJh9igThI VmLTAWaIekmJgytusExgFFzAyLCKUTS1ILmgOCm9yFivODG3uDQvXS85P3cTIzAYT/971r+D 8e4B60OMAhyMSjy8GXtkQoVYE8uKK3MPMZoCbZjILCWanA8M+bySeENjMyMLUxNTYyNzSzMl cd6FUj+DhQTSE0tSs1NTC1KL4otKc1KLDzEycXBKNTDqFKjJqbp/fpzcKXm95M+b9wdDFgm9 92VVC7x4XzXrmNvaPdcfprAFlJ4q+v4y4Bin4cn0lcoV5+OV2e9PbLt7bfq2s8x7HNbeWXRt wpMZcx09Ula++OtgIcl54KNwxfWlL5obmMTOVJ4/X6HwSkI6UKDPcX7dZrF/OcY+i9/0PJzF H3hSdW6qEktxRqKhFnNRcSIA9/nprEECAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsVy+t9jQd2sJzKhBlMWsllc//Kc1eLyrjls Fk8nXGSz+HGmm8WBxeNyXy+Tx51re9g8+rasYvT4vEkugCWqgdEmIzUxJbVIITUvOT8lMy/d Vsk7ON453tTMwFDX0NLCXEkhLzE31VbJxSdA1y0zB2inkkJZYk4pUCggsbhYSd8O04TQEDdd C5jGCF3fkCC4HiMDNJCwhjGjb+8C1oIF7BX7P7awNzC+ZO1i5OCQEDCROLdcsouRE8gUk7hw bz1bFyMXh5DAdEaJi6smsUI4Xxgl+hu2soNUsQloSex/cYMNxBYR0Je4ue4oC8ggZgE3idcv lUDCwgK2EnMmTmQBsVkEVCWO7Z7HCmLzCrhKzN49ix1imYLEsuUzWScwci9gZFjFKJpakFxQ nJSea6RXnJhbXJqXrpecn7uJERzqz6R3MK5qsDjEKMDBqMTDm7FHJlSINbGsuDL3EKMEB7OS CG/+PaAQb0piZVVqUX58UWlOavEhRlOg7ROZpUST84FxmFcSb2hsYmZkaWRuaGFkbK4kzqtk 3xYiJJCeWJKanZpakFoE08fEwSnVwGi6+qVF0vQdD2S7uR7uWCl5OaT74Eaec5vbYj7EJs66 aPOdU2KxauXqq8oBK9Kv5X87xf/rVlptXsXn8rvZHPJbSirfMaxwfuSgs7yW3UQo9GzyyUkv apqkGH11mdl+nP19RT26orHWoYx9uZy59Zod4TN2XRWQtPj1zldK8Y9GbYuvcPtkLSWW4oxE Qy3mouJEAHhty3uLAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1145 Lines: 33 This patch shows the current clock rate instead of return value when clk_set_rate() return fail because log message means the clock rate. Cc: Mike Turquette Cc: Stephen Boyd Signed-off-by: Chanwoo Choi --- drivers/clk/clk-conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-conf.c b/drivers/clk/clk-conf.c index aad4796..fb1ee65 100644 --- a/drivers/clk/clk-conf.c +++ b/drivers/clk/clk-conf.c @@ -107,8 +107,8 @@ static int __set_clk_rates(struct device_node *node, bool clk_supplier) rc = clk_set_rate(clk, rate); if (rc < 0) - pr_err("clk: couldn't set %s clock rate: %d\n", - __clk_get_name(clk), rc); + pr_err("clk: couldn't set %s clock rate: %ld\n", + __clk_get_name(clk), clk_get_rate(clk)); clk_put(clk); } index++; -- 1.8.5.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/