]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: core: Don't use devres functions before device is added
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 24 Apr 2014 17:27:25 +0000 (18:27 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 23 May 2014 09:34:01 +0000 (10:34 +0100)
commit5fa13dd719ac66487a3888a3d9aaf34aa9c9341e
treede811fde4fa0616bfaaf8ec17ced3489d14af8a7
parent74d710e4986b7cdd28a9b55063ff71a33dbd64e9
mfd: core: Don't use devres functions before device is added

The supply aliases for the MFD devices were being added using devres but
the device hasn't been added at this point and as such we can't use
devres.

The MFD already has a function that removes devices this patch uses the
non-devres versions of the supply alias functions and adds an unregister
in mfd_remove_devices_fn.

Reported-by: Carlo Caione <carlo@caione.org>
Reported-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/mfd-core.c