From patchwork Mon Jul 19 16:50:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kanigeri, Hari" X-Patchwork-Id: 112711 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6JGdcWL012850 for ; Mon, 19 Jul 2010 16:39:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936448Ab0GSQjg (ORCPT ); Mon, 19 Jul 2010 12:39:36 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:48454 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936439Ab0GSQjf (ORCPT ); Mon, 19 Jul 2010 12:39:35 -0400 Received: from dlep33.itg.ti.com ([157.170.170.112]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o6JGdWVQ028343 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 19 Jul 2010 11:39:32 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id o6JGdSFe016431; Mon, 19 Jul 2010 11:39:28 -0500 (CDT) Received: from localhost (matrix.am.dhcp.ti.com [128.247.75.166]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o6JGdSP04975; Mon, 19 Jul 2010 11:39:28 -0500 (CDT) From: Hari Kanigeri To: Linux Omap , Tony Lindgren Cc: Santosh Shilimkar , Cousson Benoit , Simon Que , Hari Kanigeri Subject: [PATCH 5/5] omap:hwspinlocks-ensure the order of registration Date: Mon, 19 Jul 2010 11:50:21 -0500 Message-Id: <1279558221-14954-6-git-send-email-h-kanigeri2@ti.com> X-Mailer: git-send-email 1.7.0 In-Reply-To: <1279558221-14954-1-git-send-email-h-kanigeri2@ti.com> References: <1279558221-14954-1-git-send-email-h-kanigeri2@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.3 (demeter.kernel.org [140.211.167.41]); Mon, 19 Jul 2010 16:39:38 +0000 (UTC) diff --git a/arch/arm/mach-omap2/hwspinlocks.c b/arch/arm/mach-omap2/hwspinlocks.c index f0f05e1..a9f85b9 100644 --- a/arch/arm/mach-omap2/hwspinlocks.c +++ b/arch/arm/mach-omap2/hwspinlocks.c @@ -67,4 +67,4 @@ int __init hwspinlocks_init(void) return retval; } -module_init(hwspinlocks_init); +postcore_initcall(hwspinlocks_init); diff --git a/arch/arm/plat-omap/hwspinlock.c b/arch/arm/plat-omap/hwspinlock.c index 1883add..3742b04 100644 --- a/arch/arm/plat-omap/hwspinlock.c +++ b/arch/arm/plat-omap/hwspinlock.c @@ -309,6 +309,7 @@ static int __init hwspinlock_init(void) return retval; } +postcore_initcall(hwspinlock_init); /* Cleanup function */ static void __exit hwspinlock_exit(void) @@ -325,8 +326,6 @@ static void __exit hwspinlock_exit(void) if (hwspinlock_module->is_init) kfree(hwspinlocks); } - -module_init(hwspinlock_init); module_exit(hwspinlock_exit); MODULE_LICENSE("GPL v2");