Skip to content

Commit

Permalink
[PATCH] i2c-imx: make bus available early
Browse files Browse the repository at this point in the history
As I2C is used by PMICs also, make the busses available early via
subsys_initcall().

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
  • Loading branch information
Wolfram Sang authored and Ben Dooks committed Sep 19, 2009
1 parent b0999cc commit 5d3f333
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/i2c/busses/i2c-imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,13 +609,12 @@ static int __init i2c_adap_imx_init(void)
{
return platform_driver_probe(&i2c_imx_driver, i2c_imx_probe);
}
subsys_initcall(i2c_adap_imx_init);

static void __exit i2c_adap_imx_exit(void)
{
platform_driver_unregister(&i2c_imx_driver);
}

module_init(i2c_adap_imx_init);
module_exit(i2c_adap_imx_exit);

MODULE_LICENSE("GPL");
Expand Down

0 comments on commit 5d3f333

Please sign in to comment.