regulator: fix device unlinking
authorGuennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Fri, 8 Feb 2019 07:41:53 +0000 (08:41 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 8 Feb 2019 13:05:14 +0000 (13:05 +0000)
commit82874ba4c6455ca8a90a8fe59834baa4cd4a1e50
tree41a9c5b89d1ef0329a2ec9c92d19dcefa2d6e503
parent9df3bb319c449c6723c2c2a1c78db45301fd8669
regulator: fix device unlinking

Device links are refcounted, device_link_remove() has to be called as
many times as device_link_add().

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c