]> git.karo-electronics.de Git - karo-tx-linux.git/commit
regulator: s2mps11: Use module_platform_driver() instead subsys initcall
authorJavier Martinez Canillas <javier@osg.samsung.com>
Wed, 6 Apr 2016 13:49:46 +0000 (09:49 -0400)
committerMark Brown <broonie@kernel.org>
Wed, 6 Apr 2016 17:12:00 +0000 (10:12 -0700)
commit5ab3c4949580a18e86b0bedd7b7b21c708192b91
tree947b63f48e430e8bb221162153e71c4bec60f83c
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
regulator: s2mps11: Use module_platform_driver() instead subsys initcall

The driver's init and exit function don't do anything besides registering
and unregistering the platform driver, so the module_platform_driver()
macro could just be used instead of having separate functions.

Currently the macro is not being used because the driver is initialized at
subsys init call level but this isn't necessary since consumer devices are
defined in the DT as dependencies so there's no need for init calls order.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/s2mps11.c