From patchwork Thu Oct 3 14:59:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2984021 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8F29E9F288 for ; Thu, 3 Oct 2013 15:08:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F390A201EF for ; Thu, 3 Oct 2013 15:08:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4E0762018C for ; Thu, 3 Oct 2013 15:08:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754594Ab3JCPIm (ORCPT ); Thu, 3 Oct 2013 11:08:42 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:56504 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754371Ab3JCPIm (ORCPT ); Thu, 3 Oct 2013 11:08:42 -0400 Received: by mail-pd0-f177.google.com with SMTP id y10so2587971pdj.36 for ; Thu, 03 Oct 2013 08:08:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=wRsgXAIQNkTLTwl+1vniG1NlYgin3zHoEvp8KC0XeqY=; b=ldtRbrpbW99OdTXgi3plbNVfWOQwOSWkOAXAkdxEv70dZTdowU3i1LE+JcI8ph3/Yc 6SQ4/heBOhjp3oFMgz9fJ+1I1GjaWmAIIsqMts7Q1fc3XwEH7aGNituugitWhurVKlRI uwQbXrL6ue+gKFXDXYMim1z75sphSgnl/XhtpxH05Z7NyGzWFwIsfDRl0NUM+f+oArz8 wJ1s2DBVH3hVnj4qH31ezKpSuTVAISXYJR/swrrC5KfbXvbr49jh48RYtr4P5yYMJnJR fwKkUeZEKem4fr1kEBLN+gKuFLiLRW1wg/7gn0S5T9MK04UIKCi8OBjdDl7Elgpmdd+j bMlw== X-Gm-Message-State: ALoCoQlHEnOldgufs84aii0pfrZOoproYIo595nljCxxziTyve2C1mefS/gvfoxU/Hpu36wYJNep X-Received: by 10.66.136.167 with SMTP id qb7mr10151517pab.43.1380812921803; Thu, 03 Oct 2013 08:08:41 -0700 (PDT) Received: from localhost ([122.167.152.64]) by mx.google.com with ESMTPSA id fy4sm8846912pbb.1.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:08:41 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Cc: cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, Viresh Kumar Subject: [PATCH V2 Resend 89/92] cpufreq: s5pv210: use cpufreq_generic_init() routine Date: Thu, 3 Oct 2013 20:29:23 +0530 Message-Id: <802380c71397b83bce659fb36e06c7ba1100ba93.1380783079.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 Use generic cpufreq_generic_init() routine instead of replicating the same code here. Signed-off-by: Viresh Kumar --- drivers/cpufreq/s5pv210-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c index 30d9bb7..600b4f4 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c @@ -543,9 +543,7 @@ static int __init s5pv210_cpu_init(struct cpufreq_policy *policy) s5pv210_dram_conf[1].refresh = (__raw_readl(S5P_VA_DMC1 + 0x30) * 1000); s5pv210_dram_conf[1].freq = clk_get_rate(dmc1_clk); - policy->cpuinfo.transition_latency = 40000; - - return cpufreq_table_validate_and_show(policy, s5pv210_freq_table); + return cpufreq_generic_init(policy, s5pv210_freq_table, 40000); out_dmc1: clk_put(dmc0_clk);