From patchwork Thu Jan 9 15:08:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 23058 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 302AC202E2 for ; Thu, 9 Jan 2014 15:09:11 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id b10sf5295690qen.6 for ; Thu, 09 Jan 2014 07:09:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=VRPVy+dW4D44aU/BfkDTIDBJjfytf1IbRrUFelmJZuI=; b=XYBgoxorXY9l3nVADsT2LvJbRo40v5c7MvpYIMxEzCUqPlLziCKnLsGc0VJt0v8cbo hTXBuIDRMQkDWlWefF+aJvGAP3J4hvqcbGpLRhnKrSDWlQxABRhvknhRw3odExdJOWuX XYXgyB5gatcm0czHiOl2+RWEqS2HtDyeSdEVA64deiw9j9K5a3AmO85DoUVw2Y2QmM8J lHgPrvvk8bVQ2oaM+lW7rk8i7PlW/78IQk5Ov2uqkjkKncpPrayFeXHRqrf/qj9TDH13 ha7hUMELRAfsxKpsgHIj10+Yi2DymcPcib8Tf4hyhDGmiTPA5cwmXJzRqRYVrInUrz7d VHxw== X-Gm-Message-State: ALoCoQntOH7cBdEW4Osw+7PaY/LX7Hsl0dASnePerRSjl9EmXA1cDb8pGEkKsKcQotpfSmFb7Cx6 X-Received: by 10.58.211.195 with SMTP id ne3mr1337562vec.35.1389280150398; Thu, 09 Jan 2014 07:09:10 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.104.9 with SMTP id ga9ls1091112qeb.38.gmail; Thu, 09 Jan 2014 07:09:10 -0800 (PST) X-Received: by 10.58.37.67 with SMTP id w3mr3065743vej.22.1389280150271; Thu, 09 Jan 2014 07:09:10 -0800 (PST) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id q10si2946674ves.134.2014.01.09.07.09.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Jan 2014 07:09:10 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id jw12so2483913veb.3 for ; Thu, 09 Jan 2014 07:09:10 -0800 (PST) X-Received: by 10.52.241.103 with SMTP id wh7mr1369607vdc.85.1389280150099; Thu, 09 Jan 2014 07:09:10 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp18543ved; Thu, 9 Jan 2014 07:09:09 -0800 (PST) X-Received: by 10.68.254.132 with SMTP id ai4mr4167224pbd.51.1389280149088; Thu, 09 Jan 2014 07:09:09 -0800 (PST) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx.google.com with ESMTPS id wm3si4175721pab.107.2014.01.09.07.09.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Jan 2014 07:09:09 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.54 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.54; Received: by mail-pa0-f54.google.com with SMTP id kl14so3400471pab.13 for ; Thu, 09 Jan 2014 07:09:08 -0800 (PST) X-Received: by 10.68.138.226 with SMTP id qt2mr4185927pbb.65.1389280148561; Thu, 09 Jan 2014 07:09:08 -0800 (PST) Received: from localhost ([122.167.240.254]) by mx.google.com with ESMTPSA id kk1sm10619452pbd.22.2014.01.09.07.09.00 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 09 Jan 2014 07:09:07 -0800 (PST) From: Viresh Kumar To: rjw@rjwysocki.net Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, olof@lixom.net, arnd.bergmann@linaro.org, Viresh Kumar , Russell King Subject: [PATCH 1/2] ARM: SA1100: Create dummy clk_get_rate() to avoid build failures Date: Thu, 9 Jan 2014 20:38:42 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , There are some parts of common kernel which would be using routines like clk_get_rate() on some platforms. Currently these wouldn't be called for SA1100 boards but we need these routines for successful builds of these boards. So, this patch creates a dummy clk_get_rate() routine which is being used by cpufreq core. More dummy routines might be added later if there is a need for that. Cc: Russell King Cc: Arnd Bergmann Reported-by: olof@lixom.net Signed-off-by: Viresh Kumar --- Hi Rafael, This is the only new part here. 2/2 is still the same. Its compiled for Assabet board. And the issue reported by Olof is resolved with it. arch/arm/mach-sa1100/clock.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-sa1100/clock.c b/arch/arm/mach-sa1100/clock.c index 172ebd0..9fa6a99 100644 --- a/arch/arm/mach-sa1100/clock.c +++ b/arch/arm/mach-sa1100/clock.c @@ -33,6 +33,13 @@ struct clk clk_##_name = { \ static DEFINE_SPINLOCK(clocks_lock); +/* Dummy clk routine to build generic kernel parts that may be using them */ +unsigned long clk_get_rate(struct clk *clk) +{ + return 0; +} +EXPORT_SYMBOL(clk_get_rate); + static void clk_gpio27_enable(struct clk *clk) { /*