Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2330205 authored by David Jander's avatar David Jander Committed by Dmitry Torokhov
Browse files

Input: gpio_keys - move to late_initcall



Initialize gpio_keys driver at late_initcall level, to give it a chance to
work with GPIO expanders that might not be ready yet if we initialize the
driver at module_init time.

This is strictly a band-aid until there is a better way to specify
inter-device dependencies.

Signed-off-by: default avatarDavid Jander <david@protonic.nl>
Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 6a592a7f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -644,7 +644,7 @@ static void __exit gpio_keys_exit(void)
	platform_driver_unregister(&gpio_keys_device_driver);
}

module_init(gpio_keys_init);
late_initcall(gpio_keys_init);
module_exit(gpio_keys_exit);

MODULE_LICENSE("GPL");