From patchwork Fri Jul 21 15:22:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9857157 X-Patchwork-Delegate: sboyd@codeaurora.org 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 28CBF60393 for ; Fri, 21 Jul 2017 15:24:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E5DC286C2 for ; Fri, 21 Jul 2017 15:24:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 130EE286DE; Fri, 21 Jul 2017 15:24:01 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 A75A1286D9 for ; Fri, 21 Jul 2017 15:24:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754550AbdGUPXo (ORCPT ); Fri, 21 Jul 2017 11:23:44 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:50956 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754375AbdGUPXn (ORCPT ); Fri, 21 Jul 2017 11:23:43 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0MdH3n-1dGm2905wZ-00IXG8; Fri, 21 Jul 2017 17:23:02 +0200 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org, Sekhar Nori , Kevin Hilman , Russell King Cc: Arnd Bergmann , linux-clk@vger.kernel.org, Stephen Boyd , Michael Turquette , Hartley Sweeten , Alexander Sverdlin , Eric Miao , Haojian Zhuang , Alexandre Bailon , Masahiro Yamada , Dmitry Eremin-Solenikov , linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] ARM: davinci: normalize clk API Date: Fri, 21 Jul 2017 17:22:46 +0200 Message-Id: <20170721152250.3310552-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170721152250.3310552-1-arnd@arndb.de> References: <20170721152250.3310552-1-arnd@arndb.de> X-Provags-ID: V03:K0:scemOVYwWz5KcZt0JDOxXsOFOgcN3s8/pghtL+v4UkdtsB8i+qy MwGVJA2la0sHFukYogauUcG9ALo2VCfLUKDdRMHZtWAOvoyorUPGvXgeKAUI/ETEfFOactW geybQ+YIzpoZPgdw7IJtBaP1GmaQtVgXb1k/0jTuyjF9Bhbum5bNtE451KzcwymCx4pB8wi MiI3QoJdrRds9dcAa1seA== X-UI-Out-Filterresults: notjunk:1; V01:K0:1WZvlWfmAs0=:pdAkAGPLuXMNSFVoHoKhgO nAZNeNZLbu+axnJLMCpyNJ9DwAhiFRRGJ38XVwucl0Ef5S/JBF3Yj5dyDNRHXB9wFN3QtmRM/ daXz4JJzBgKRJU14HAx/52DNkkvyGvURePlvIW9jvy/gb2ibTwMiACFgBR9+G+0jz1LPnQxLJ VXfh940drhaZTcs4VItk0XZztDmMIoJdzyMB2rBc8BYjxXEsNCd3e9Wcfi9c7yaFXjkLIZxnO lrqJqFC9h/GhDDpUl8IR+oZX/vVQqKFbmQ5uOjmtPOM50d0C91qq+bfI1miLHJdOsgZsHviwf MfsKfjGL2RSheic7kyjmfrcDrM39gw6NK7LCxkQsdm1Yh5InQGuzjBzlhrPl7aDbKpaDmAfXm t45XmJYAhMDJxqToDqkV5Mcl64Z2rA/MaPWGABd94NHmhOzJZJReCE/E681FC7HZ9uaRLhZQF Yb2I21Ua69yFu5aenr4KJPdCmYEfGMTJ1PDVWfOlLRPJUw5IoR4SPQE5KRTwcog/qtZd1Vk5H WuHCXXvREkCEjz7UAeq0v7ztBuQzpF6my58T4ETi4s83Qq3V6CV9QImnnUiiBCkGwRjsj+VcC 9PCJB1HgGgqLbEWwllnv895Wc9T+4Jayzrq7VpNHBGMvFVcvEch4XxmHOSFffH8a+H80GvTGX tRsxZ4JkQYv1M1/VnE8pHWKwapKAYAZkxUWMbs+/BEljS3+rQC8+K8pKaeI0t0weU2QM2EZGL /r9rfIRsAJCTWOeNNnICxmjCYBlyF2eIU7q9TQ== 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 davinci still has its own clk implementation, but lacks a clk_get_parent() helper, which can lead to link errors in randconfig builds. This adds the usual implementation. Acked-by: Sekhar Nori Signed-off-by: Arnd Bergmann --- arch/arm/mach-davinci/clock.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-davinci/clock.c b/arch/arm/mach-davinci/clock.c index f5dce9b4e617..f77a4f766050 100644 --- a/arch/arm/mach-davinci/clock.c +++ b/arch/arm/mach-davinci/clock.c @@ -218,6 +218,15 @@ int clk_set_parent(struct clk *clk, struct clk *parent) } EXPORT_SYMBOL(clk_set_parent); +struct clk *clk_get_parent(struct clk *clk) +{ + if (!clk) + return NULL; + + return clk->parent; +} +EXPORT_SYMBOL(clk_get_parent); + int clk_register(struct clk *clk) { if (clk == NULL || IS_ERR(clk))