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

Skip to content
Snippets Groups Projects
Commit 173f24d1 authored by Mark Brown's avatar Mark Brown
Browse files

regulator: tps6524x: Use module_spi_driver()


Unusual to see a regulator driver not using subsys_initcall() but the
deferred probe support should make this viable.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 4a78f2c1
Branches
No related tags found
No related merge requests found
...@@ -661,17 +661,7 @@ static struct spi_driver pmic_driver = { ...@@ -661,17 +661,7 @@ static struct spi_driver pmic_driver = {
}, },
}; };
static int __init pmic_driver_init(void) module_spi_driver(pmic_driver);
{
return spi_register_driver(&pmic_driver);
}
module_init(pmic_driver_init);
static void __exit pmic_driver_exit(void)
{
spi_unregister_driver(&pmic_driver);
}
module_exit(pmic_driver_exit);
MODULE_DESCRIPTION("TPS6524X PMIC Driver"); MODULE_DESCRIPTION("TPS6524X PMIC Driver");
MODULE_AUTHOR("Cyril Chemparathy"); MODULE_AUTHOR("Cyril Chemparathy");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment