summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-10-13 18:00:21 -0700
committerColin Cross <ccross@android.com>2010-10-20 14:30:17 -0700
commit8b2a43378b06e6706c5ac4faa943468fe06f51a4 (patch)
treea9fc0c8629704f81b27309acb0e24ddc5ad49e66 /drivers
parent00eb0f29e9e3c9882b334a7fffa13f63085e8117 (diff)
i2c: busses: i2c-tegra: Move init to subsys_initcall
Some drivers (like hdmi) need to communicate over i2c during probe. Move the i2c bus init to the subsys init level so that i2c is ready for the start of the device init level. Change-Id: I81234d42aa26b657ffc619099e47df09e12083bb Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/busses/i2c-tegra.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c
index 7e201501a84c..999ae2d30e30 100644
--- a/drivers/i2c/busses/i2c-tegra.c
+++ b/drivers/i2c/busses/i2c-tegra.c
@@ -741,7 +741,11 @@ static int __init tegra_i2c_init_driver(void)
{
return platform_driver_register(&tegra_i2c_driver);
}
-module_init(tegra_i2c_init_driver);
+/*
+ * Some drivers (hdmi) depend on i2c busses already being present,
+ * so init at subsys time.
+ */
+subsys_initcall(tegra_i2c_init_driver);
static void __exit tegra_i2c_exit_driver(void)
{