From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753092AbaA3Ktk (ORCPT ); Thu, 30 Jan 2014 05:49:40 -0500 Received: from eu1sys200aog110.obsmtp.com ([207.126.144.129]:36554 "EHLO eu1sys200aog110.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753051AbaA3Ktg (ORCPT ); Thu, 30 Jan 2014 05:49:36 -0500 From: Mohit Kumar To: Cc: Pratyush Anand , Mohit Kumar , Kishon Vijay Abraham I , , Subject: [PATCH V3 4/8] phy: Initialize phy core with subsys_initcall Date: Thu, 30 Jan 2014 16:18:46 +0530 Message-ID: <6f2dbd4fcb99a070c07b39545d98eca58101daa0.1391077731.git.mohit.kumar@st.com> X-Mailer: git-send-email 1.7.0.1 In-Reply-To: References: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pratyush Anand PCIe RC drivers are initialized with subsys_initcall. Few PCIe drivers like SPEAr13xx needs phy drivers to be initialized. Therefore initialize phy core driver with subsys_initcall to avoid calling of phy_get before phy_class is created. Signed-off-by: Pratyush Anand Cc: Mohit Kumar Cc: Kishon Vijay Abraham I Cc: Arnd Bergmann Cc: spear-devel@list.st.com Cc: linux-kernel@vger.kernel.org --- drivers/phy/phy-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index 03cf8fb..fa73101 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -685,7 +685,7 @@ static int __init phy_core_init(void) return 0; } -module_init(phy_core_init); +subsys_initcall(phy_core_init); static void __exit phy_core_exit(void) { -- 1.7.0.1