From patchwork Wed Nov 25 11:50:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Sverdlin X-Patchwork-Id: 7698301 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 093869F1BE for ; Wed, 25 Nov 2015 11:52:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 41BA4208ED for ; Wed, 25 Nov 2015 11:52:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 87955208E5 for ; Wed, 25 Nov 2015 11:52:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a1YbH-0004EG-B0; Wed, 25 Nov 2015 11:51:03 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a1Yb5-00043i-4z for linux-arm-kernel@lists.infradead.org; Wed, 25 Nov 2015 11:50:53 +0000 Received: by wmuu63 with SMTP id u63so11081554wmu.0 for ; Wed, 25 Nov 2015 03:50:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=hTjOQqoulgQ8eN15wNpnDOWGaaEH4uU6fd19I6m+l5o=; b=kC5Ie4T3zPiCBXHS+OR2EML1vS+Hin8uM/EKP7OYHqSYfN0Fvb6y1pGgT6LR3naUm2 WoLWVMpg8Exjh8yPvU09A9NhnWLqe4BRheL20f1p9LaCm7bYw7xCz9v234gPzaCiZ5I0 +ltzEMMIFJ57VLO92B0dIm9vL3+pzaWQFvie/14L1gQxsX1yIcp0cLM8Aoa48ZjIBnvu lWuoizehcRhoXJgGluakYX69vdwanbHKnLEu1ZKxSOAqvDS1aaCNYfbsqo9XwOSawIvo XAbyEyOCT56cBwH4CTEAr2mXHnjNvs14A7/VWb6irypDoUfol8Y6q/7sAP4FYuL+RzqK ygkg== X-Received: by 10.28.7.138 with SMTP id 132mr4276982wmh.100.1448452229572; Wed, 25 Nov 2015 03:50:29 -0800 (PST) Received: from [192.168.1.20] (x5d846db9.dyn.telefonica.de. [93.132.109.185]) by smtp.gmail.com with ESMTPSA id wh10sm22760205wjb.45.2015.11.25.03.50.28 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Nov 2015 03:50:29 -0800 (PST) Subject: [PATCH 1/5] clk: ep93xx: Implement clk_get_parent() To: Hartley Sweeten , Ryan Mallon , linux-arm-kernel@lists.infradead.org, linux-iio@vger.kernel.org References: <56558B23.4080506@gmail.com> From: Alexander Sverdlin Message-ID: <5655A083.3080200@gmail.com> Date: Wed, 25 Nov 2015 12:50:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56558B23.4080506@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151125_035051_612084_693DE75E X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lars-Peter Clausen , Russell King , Peter Meerwald , Jonathan Cameron , Hartmut Knaack Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Trivial implementation of clk_get_parent(), but necessary for some drivers, such as ADC. Signed-off-by: Alexander Sverdlin --- arch/arm/mach-ep93xx/clock.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-ep93xx/clock.c b/arch/arm/mach-ep93xx/clock.c index 39ef3b6..b9cd9d7 100644 --- a/arch/arm/mach-ep93xx/clock.c +++ b/arch/arm/mach-ep93xx/clock.c @@ -475,6 +475,12 @@ int clk_set_rate(struct clk *clk, unsigned long rate) } EXPORT_SYMBOL(clk_set_rate); +struct clk *clk_get_parent(struct clk *clk) +{ + return clk->parent; +} +EXPORT_SYMBOL(clk_get_parent); + static char fclk_divisors[] = { 1, 2, 4, 8, 16, 1, 1, 1 }; static char hclk_divisors[] = { 1, 2, 4, 5, 6, 8, 16, 32 };