aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps6524x-regulator.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-03 19:34:23 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-04 06:39:46 -0400
commit173f24d1ffe23f46b689159ee9d6b6aa402ff2e9 (patch)
treec9df69b80fdb76753bbb5a73693655e8664a74d8 /drivers/regulator/tps6524x-regulator.c
parent4a78f2c1d67fb2ac89fe724a505dca64181f95f2 (diff)
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: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/tps6524x-regulator.c')
-rw-r--r--drivers/regulator/tps6524x-regulator.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c
index 2a828a07386a..eabf0e601f65 100644
--- a/drivers/regulator/tps6524x-regulator.c
+++ b/drivers/regulator/tps6524x-regulator.c
@@ -661,17 +661,7 @@ static struct spi_driver pmic_driver = {
661 }, 661 },
662}; 662};
663 663
664static int __init pmic_driver_init(void) 664module_spi_driver(pmic_driver);
665{
666 return spi_register_driver(&pmic_driver);
667}
668module_init(pmic_driver_init);
669
670static void __exit pmic_driver_exit(void)
671{
672 spi_unregister_driver(&pmic_driver);
673}
674module_exit(pmic_driver_exit);
675 665
676MODULE_DESCRIPTION("TPS6524X PMIC Driver"); 666MODULE_DESCRIPTION("TPS6524X PMIC Driver");
677MODULE_AUTHOR("Cyril Chemparathy"); 667MODULE_AUTHOR("Cyril Chemparathy");