[PATCH V3 4/8] phy: Initialize phy core with subsys_initcall

From: Mohit Kumar
Date: Thu Jan 30 2014 - 05:49:46 EST


From: Pratyush Anand <pratyush.anand@xxxxxx>

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 <pratyush.anand@xxxxxx>
Cc: Mohit Kumar <mohit.kumar@xxxxxx>
Cc: Kishon Vijay Abraham I <kishon@xxxxxx>
Cc: Arnd Bergmann <arnd@xxxxxxxx>
Cc: spear-devel@xxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/