Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
drivers/i2c: init i2c driver on subsys_initcall
Browse files Browse the repository at this point in the history
Apparently the connection sockets needed for the tri_state_key driver
are not setup when this driver is called up at module_init.
Init this driver earlier to setup the socket earlier.

Signed-off-by: Vaisakh Murali <[email protected]>
  • Loading branch information
mvaisakh committed Mar 21, 2023
1 parent 0f9daad commit cc4d7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-msm-geni.c
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ static void __exit i2c_dev_exit(void)
platform_driver_unregister(&geni_i2c_driver);
}

module_init(i2c_dev_init);
subsys_initcall(i2c_dev_init);
module_exit(i2c_dev_exit);
MODULE_LICENSE("GPL v2");
MODULE_ALIAS("platform:i2c_geni");

0 comments on commit cc4d7c5

Please sign in to comment.