use subsys_initcall in the i2c-gpio driver
SVN-Revision: 16787
This commit is contained in:
parent
4147b632e9
commit
eb990941a1
3 changed files with 33 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
--- a/drivers/i2c/busses/i2c-gpio.c
|
||||
+++ b/drivers/i2c/busses/i2c-gpio.c
|
||||
@@ -210,7 +210,7 @@ static int __init i2c_gpio_init(void)
|
||||
|
||||
return ret;
|
||||
}
|
||||
-module_init(i2c_gpio_init);
|
||||
+subsys_initcall(i2c_gpio_init);
|
||||
|
||||
static void __exit i2c_gpio_exit(void)
|
||||
{
|
|
@ -0,0 +1,11 @@
|
|||
--- a/drivers/i2c/busses/i2c-gpio.c
|
||||
+++ b/drivers/i2c/busses/i2c-gpio.c
|
||||
@@ -210,7 +210,7 @@ static int __init i2c_gpio_init(void)
|
||||
|
||||
return ret;
|
||||
}
|
||||
-module_init(i2c_gpio_init);
|
||||
+subsys_initcall(i2c_gpio_init);
|
||||
|
||||
static void __exit i2c_gpio_exit(void)
|
||||
{
|
|
@ -0,0 +1,11 @@
|
|||
--- a/drivers/i2c/busses/i2c-gpio.c
|
||||
+++ b/drivers/i2c/busses/i2c-gpio.c
|
||||
@@ -210,7 +210,7 @@ static int __init i2c_gpio_init(void)
|
||||
|
||||
return ret;
|
||||
}
|
||||
-module_init(i2c_gpio_init);
|
||||
+subsys_initcall(i2c_gpio_init);
|
||||
|
||||
static void __exit i2c_gpio_exit(void)
|
||||
{
|
Loading…
Reference in a new issue