From patchwork Tue Jun 7 02:05:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 855092 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p5726DTP020341 for ; Tue, 7 Jun 2011 02:06:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756655Ab1FGCGN (ORCPT ); Mon, 6 Jun 2011 22:06:13 -0400 Received: from na3sys009aog112.obsmtp.com ([74.125.149.207]:57191 "EHLO na3sys009aog112.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756383Ab1FGCGM (ORCPT ); Mon, 6 Jun 2011 22:06:12 -0400 Received: from mail-gw0-f44.google.com ([74.125.83.44]) (using TLSv1) by na3sys009aob112.postini.com ([74.125.148.12]) with SMTP ID DSNKTe2HkiIpKZpCpf5F6YVPenCgp0scKlfT@postini.com; Mon, 06 Jun 2011 19:06:11 PDT Received: by gwb20 with SMTP id 20so2198394gwb.31 for ; Mon, 06 Jun 2011 19:06:05 -0700 (PDT) Received: by 10.91.197.5 with SMTP id z5mr2586469agp.43.1307412339663; Mon, 06 Jun 2011 19:05:39 -0700 (PDT) Received: from localhost (dragon.ti.com [192.94.94.33]) by mx.google.com with ESMTPS id c35sm3720157anp.11.2011.06.06.19.05.38 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Jun 2011 19:05:38 -0700 (PDT) From: Nishanth Menon To: linux-omap Cc: kevin , Nishanth Menon Subject: [pm-wip/cpufreq][PATCH 3/3] OMAP2+: cpufreq: do lateinit Date: Mon, 6 Jun 2011 21:05:30 -0500 Message-Id: <1307412330-25798-4-git-send-email-nm@ti.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1307412330-25798-1-git-send-email-nm@ti.com> References: <1307412330-25798-1-git-send-email-nm@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 07 Jun 2011 02:06:14 +0000 (UTC) Since we do module_init, cpufreq initializes before power late_init where many of the required data structures are registered. Move cpufreq init to late_initcall instead. Further CONFIG_CPU_FREQ on which the build depends is bool and does'nt support modules yet. Signed-off-by: Nishanth Menon --- arch/arm/mach-omap2/omap2plus-cpufreq.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/omap2plus-cpufreq.c b/arch/arm/mach-omap2/omap2plus-cpufreq.c index 2177381..07c2ab9 100644 --- a/arch/arm/mach-omap2/omap2plus-cpufreq.c +++ b/arch/arm/mach-omap2/omap2plus-cpufreq.c @@ -273,5 +273,5 @@ static void __exit omap_cpufreq_exit(void) MODULE_DESCRIPTION("cpufreq driver for OMAP2PLUS SOCs"); MODULE_LICENSE("GPL"); -module_init(omap_cpufreq_init); +late_initcall(omap_cpufreq_init); module_exit(omap_cpufreq_exit);