techpack: audio: pinctrl-lpi: initialise at late_initcall
Fixes booting with techpack online and modules disabled. Without this it spits out a nasty NULL pointer dereference. Signed-off-by: Yaroslav Furman <yaro330@gmail.com> Change-Id: Ib51f186ccff1c7f7c7aed27d4ef8319561b3dba4
This commit is contained in:
committed by
Sebastiano Barezzi
parent
36429a4a9b
commit
87cc4cae8d
@@ -956,7 +956,17 @@ static struct platform_driver lpi_pinctrl_driver = {
|
||||
.remove = lpi_pinctrl_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(lpi_pinctrl_driver);
|
||||
static int __init lpi_init(void)
|
||||
{
|
||||
return platform_driver_register(&lpi_pinctrl_driver);
|
||||
}
|
||||
late_initcall(lpi_init);
|
||||
|
||||
static void __exit lpi_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&lpi_pinctrl_driver);
|
||||
}
|
||||
module_exit(lpi_exit);
|
||||
|
||||
MODULE_DESCRIPTION("QTI LPI GPIO pin control driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
||||
Reference in New Issue
Block a user