@@ -855,7 +855,7 @@ static void __exit gpio_keys_exit(void)
platform_driver_unregister(&gpio_keys_device_driver);
}
-late_initcall(gpio_keys_init);
+annotated_initcall(late, gpio_keys_init, gpio_keys_device_driver.driver);
module_exit(gpio_keys_exit);
MODULE_LICENSE("GPL");
@@ -243,4 +243,4 @@ static int __init sram_init(void)
return platform_driver_register(&sram_driver);
}
-postcore_initcall(sram_init);
+annotated_initcall(postcore, sram_init, sram_driver.driver);
@@ -221,7 +221,8 @@ static int __init regulator_fixed_voltage_init(void)
{
return platform_driver_register(®ulator_fixed_voltage_driver);
}
-subsys_initcall(regulator_fixed_voltage_init);
+annotated_initcall(subsys, regulator_fixed_voltage_init,
+ regulator_fixed_voltage_driver.driver);
static void __exit regulator_fixed_voltage_exit(void)
{
@@ -360,7 +360,7 @@ static int __init usb_phy_generic_init(void)
{
return platform_driver_register(&usb_phy_generic_driver);
}
-subsys_initcall(usb_phy_generic_init);
+annotated_initcall(subsys, usb_phy_generic_init, usb_phy_generic_driver.driver);
static void __exit usb_phy_generic_exit(void)
{
WIP means Work In Progress. Change some generic drivers to offer annotated initcalls. Signed-off-by: Alexander Holler <holler@ahsoftware.de> --- drivers/input/keyboard/gpio_keys.c | 2 +- drivers/misc/sram.c | 2 +- drivers/regulator/fixed.c | 3 ++- drivers/usb/phy/phy-generic.c | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-)