mfd: max77686: Use module_i2c_driver() instead of subsys initcall
authorJavier Martinez Canillas <javier@osg.samsung.com>
Mon, 4 Apr 2016 22:46:02 +0000 (18:46 -0400)
committerLee Jones <lee.jones@linaro.org>
Tue, 19 Apr 2016 06:59:28 +0000 (07:59 +0100)
commit8a0aee4a7c8500278495012d8f4b653033df83a3
treeefa3d3a460aa9eb322f3cd67bf823d991ebb4c7f
parent630fd98c0a7fcba67d4b33440793b0c9bd1fb440
mfd: max77686: Use module_i2c_driver() instead of subsys initcall

The driver's init and exit function don't do anything besides adding and
deleting the I2C driver so the module_i2c_driver() macro could be used.

Currently is not being used because the driver is initialized at subsys
initcall level, claiming that this is done to allow consumers devices to
use the resources provided by this driver. But dependencies are in DT so
manual ordering of init calls is not necessary any more.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/max77686.c
This page took 0.044804 seconds and 5 git commands to generate.