Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758669Ab0FJIqg (ORCPT ); Thu, 10 Jun 2010 04:46:36 -0400 Received: from nwd2mail10.analog.com ([137.71.25.55]:48240 "EHLO nwd2mail10.analog.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752991Ab0FJIqf (ORCPT ); Thu, 10 Jun 2010 04:46:35 -0400 X-IronPort-AV: E=Sophos;i="4.53,397,1272859200"; d="scan'208";a="17267689" Subject: [PATCH] regulator: make sure the regulator is available prior to the consumers. From: sonic zhang To: Mark Brown , Liam Girdwood CC: Linux Kernel , uclinux-dist-devel Content-Type: text/plain Date: Thu, 10 Jun 2010 16:53:47 +0800 Message-ID: <1276160027.18479.1.camel@eight.analog.com> MIME-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1141 Lines: 36 >From 5a71b38961b0889a239842defd733774ed3d9cdf Mon Sep 17 00:00:00 2001 From: Sonic Zhang Date: Thu, 10 Jun 2010 16:50:20 +0800 Subject: [PATCH] regulator: make sure the regulator is available prior to the consumers. Some systems are likely to want this to be subsys_initcall() to make sure the regulator is available prior to the consumers. Signed-off-by: Sonic Zhang --- drivers/regulator/ad5398.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/regulator/ad5398.c b/drivers/regulator/ad5398.c index 0451c30..03969d3 100644 --- a/drivers/regulator/ad5398.c +++ b/drivers/regulator/ad5398.c @@ -274,7 +274,7 @@ static int __init ad5398_init(void) { return i2c_add_driver(&ad5398_driver); } -module_init(ad5398_init); +subsys_initcall(ad5398_init); static void __exit ad5398_exit(void) { -- 1.6.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/