From patchwork Thu Dec 13 12:12:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niels de Vos X-Patchwork-Id: 1871981 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id F3C873FC71 for ; Thu, 13 Dec 2012 12:15:57 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tj7eh-0005Cy-Pi; Thu, 13 Dec 2012 12:12:47 +0000 Received: from mail-we0-f177.google.com ([74.125.82.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Tj7ed-0005Cg-OH for linux-arm-kernel@lists.infradead.org; Thu, 13 Dec 2012 12:12:44 +0000 Received: by mail-we0-f177.google.com with SMTP id x48so829127wey.36 for ; Thu, 13 Dec 2012 04:12:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=Lz14um18lDaqOmE58SNW2iGZj4QPYypS0ULYrb412+M=; b=bN1XItMFmuo+d5/TqKT00ahqdkukwcbncg+J+LrR25mExhegEAzD/nlDMJX72uCZlS SDmRCIb1+94spuUfjokaFl/j+ZK2VztKmjyK8c/t8/dmQb3Z+g6lk7xydMuMfvEs1ZLd OAjESxxNkh+f3orl0ZU+vciW6Er34Y+kjUn1d9ZGYHnd06gxipYeHOPT0wWVBV+R/xC9 QXobZehB4FhgDVLqa7eQ7yZiESOQDbya6MxedSBPj+TRC1bDw5Vmnbx4V1cXzo5Aq6+K +vJwm2C7Ef4LaveHinsx5HNeUh9mKmfSDVG5JTX/pxHCuHlA6Te8LbKAM3JE6tg+mnOH Iwjw== Received: by 10.180.33.202 with SMTP id t10mr2944513wii.3.1355400761274; Thu, 13 Dec 2012 04:12:41 -0800 (PST) Received: from imx-dev.fritz.box (teakhout.nixpanic.net. [83.161.152.167]) by mx.google.com with ESMTPS id p3sm7492807wic.8.2012.12.13.04.12.40 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Dec 2012 04:12:40 -0800 (PST) From: Niels de Vos To: linux-arm-kernel@lists.infradead.org, Russell King Subject: [PATCH] clk: export __clk_get_name for re-use in imx-ipu-v3 and others Date: Thu, 13 Dec 2012 13:12:25 +0100 Message-Id: <1355400745-7320-1-git-send-email-ndevos@redhat.com> X-Mailer: git-send-email 1.7.11.7 X-Gm-Message-State: ALoCoQnGvaXDpF7jxR7TK5bbExyBzjHk0zLldDqMJTQ0GcskGQBGcrh3OkmripOKCK5UFERT7ktE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121213_071244_027105_F22C41C7 X-CRM114-Status: GOOD ( 11.92 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Sascha Hauer , Mike Turquette , Niels de Vos X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This fixes the following error when building for arm-imx: > ERROR: "__clk_get_name" [drivers/staging/imx-drm/ipu-v3/imx-ipu-v3.ko] undefined! > make[1]: *** [__modpost] Error 1 > make: *** [modules] Error 2 There are valid usecases to get the name of a clock, be it for debugging purposes or to register a children of a clock like done in this IPU driver. Therefore exporting __clk_get_name() and make it available for others makes sense. Reported-by: Peter Robinson CC: Sascha Hauer CC: Mike Turquette Signed-off-by: Niels de Vos Acked-by: Sascha Hauer --- drivers/clk/clk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 251e45d..fbe0f3a 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -259,10 +259,11 @@ late_initcall(clk_disable_unused); /*** helper functions ***/ -inline const char *__clk_get_name(struct clk *clk) +const char *__clk_get_name(struct clk *clk) { return !clk ? NULL : clk->name; } +EXPORT_SYMBOL_GPL(__clk_get_name); inline struct clk_hw *__clk_get_hw(struct clk *clk) {