mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge "spmi: pmic-arb: instantiate spmi_devices at arch_initcall"
This commit is contained in:
commit
0eab2b4f32
1 changed files with 14 additions and 4 deletions
|
|
@ -1,7 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2012-2015, 2017-2018 The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved. */
|
||||
|
||||
#include <linux/bitmap.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/err.h>
|
||||
|
|
@ -1347,7 +1346,18 @@ static struct platform_driver spmi_pmic_arb_driver = {
|
|||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
},
|
||||
};
|
||||
module_platform_driver(spmi_pmic_arb_driver);
|
||||
|
||||
static int __init spmi_pmic_arb_init(void)
|
||||
{
|
||||
return platform_driver_register(&spmi_pmic_arb_driver);
|
||||
}
|
||||
arch_initcall(spmi_pmic_arb_init);
|
||||
|
||||
static void __exit spmi_pmic_arb_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&spmi_pmic_arb_driver);
|
||||
}
|
||||
module_exit(spmi_pmic_arb_exit);
|
||||
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:spmi_pmic_arb");
|
||||
|
|
|
|||
Loading…
Reference in a new issue