Skip to content
Snippets Groups Projects
Commit 10452280 authored by Pratyush Anand's avatar Pratyush Anand Committed by Wolfram Sang
Browse files

i2c: designware: dw_i2c_init_driver as subsys initcall


There are few drivers which are available on i2c bus but have been initialized
with subsys_initcall. Also as I2C is a bus driver, it should be available as
early as possible.

Signed-off-by: default avatarPratyush Anand <pratyush.anand@st.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@st.com>

[wsa: Slightly updated the commit message]

Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
parent 64eac231
No related branches found
No related tags found
No related merge requests found
......@@ -214,7 +214,7 @@ static int __init dw_i2c_init_driver(void)
{
return platform_driver_probe(&dw_i2c_driver, dw_i2c_probe);
}
module_init(dw_i2c_init_driver);
subsys_initcall(dw_i2c_init_driver);
static void __exit dw_i2c_exit_driver(void)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment