ASoC: wm8804: Use new devres regulator_register_notifier
authorCharles Keepax <ckeepax@gmail.com>
Thu, 5 Mar 2015 15:39:21 +0000 (15:39 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 5 Mar 2015 16:51:58 +0000 (16:51 +0000)
commit0be9653a02830637ed385d99bf898d456e8eae8f
treeab52fcbc86fd8eef3b8840dfe99d767e25a1ca59
parent5142442d75194ab983e865e6c12995da5666a11c
ASoC: wm8804: Use new devres regulator_register_notifier

This is more idiomatic and also fixes an issue where the notifiers were
being leaked if probe failed.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8804.c