From patchwork Sat Feb 20 17:59:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Sverdlin X-Patchwork-Id: 8367571 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2E8FDC0554 for ; Sat, 20 Feb 2016 18:02:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5AB1620254 for ; Sat, 20 Feb 2016 18:02:08 +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 801FD20465 for ; Sat, 20 Feb 2016 18:02:07 +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 1aXBpJ-0005dD-Jq; Sat, 20 Feb 2016 18:00:17 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aXBpB-0004d0-QE for linux-arm-kernel@lists.infradead.org; Sat, 20 Feb 2016 18:00:10 +0000 Received: by mail-wm0-x22f.google.com with SMTP id g62so118617086wme.1 for ; Sat, 20 Feb 2016 09:59:48 -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-transfer-encoding; bh=hTjOQqoulgQ8eN15wNpnDOWGaaEH4uU6fd19I6m+l5o=; b=in4DCahJNhL163Aeb+CMY+/D3bFsqzrvoOG5XTvIKMFOzQ09Z73oeRM/gxvcW10Oi0 sluAQesfseK9mzUR0Zqoc7XfhocFM02xcEE9ZgV9ADnq0XKZ7uPPzGan9qMQ3J0Roj2G SSEgPcqNiiJL88LcHi70lTzBzk2LplQX0Fs4LTADeKv74w7k6Lm1CsUt9yV3t1BRrcJF kRiVwVndJ5oagdCaFgvFXNxlq0vci3+FYy+5KxD24IK3dx9Qup2p0uKyvI/4tWUoDE7i lla3GWZ1u/312ohgwbW+HyCtzSJWdMgKT/qkbM5XVDWe+wER1fYjZDJynN+E9VPQD6K2 6s8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=hTjOQqoulgQ8eN15wNpnDOWGaaEH4uU6fd19I6m+l5o=; b=cq6yar6bwiGLDDfj3wcTomwI2sXpWmcHW6+SJeOj4vZs7M3sj8KhNVcW7qELaf6ReE soqk/7cSVRN24T/Y1m/V9KfBRr7nA1wggiG1alz5HRmWgHd5TtqinCw3UozohtqD7lBa P+j13JS7tCkNEOzdLMFER3/jOBkZNDJxbS/SwIQnMYw+mxxpmfjyzccA7GMPA/ZI9BOB qQiCOiqOvAFxB9KuwgyfPcO+An1FIywvTL9/VC/+gUuu+M9pT5sfIrHGpMPMjGMuaI54 Iiux92xC+X8dGZuzoqGbLR6qf67QXZZUxlTu0zrM5jhtMGCy4vQniGkJwHogu9fj+K9A F8MQ== X-Gm-Message-State: AG10YOQ3hdFQV5saabv1qSZDcKgKXs1sIi0aNKiYRwa3PxVQBfZD34bMXbbPocMtqOpsPg== X-Received: by 10.28.48.19 with SMTP id w19mr3410498wmw.18.1455991187069; Sat, 20 Feb 2016 09:59:47 -0800 (PST) Received: from [192.168.1.20] (x5d845bdb.dyn.telefonica.de. [93.132.91.219]) by smtp.gmail.com with ESMTPSA id w62sm12979754wmg.21.2016.02.20.09.59.45 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 20 Feb 2016 09:59:46 -0800 (PST) Subject: [PATCH v2 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: <56C88EDD.3040007@gmail.com> From: Alexander Sverdlin Message-ID: <56C8A991.6000506@gmail.com> Date: Sat, 20 Feb 2016 18:59:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56C88EDD.3040007@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160220_100010_201158_51ACA2E4 X-CRM114-Status: UNSURE ( 8.54 ) 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.1 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 };