From: Lars-Peter Clausen Date: Fri, 23 Jan 2015 15:21:36 +0000 (+0100) Subject: ASoC: Add support for allocating AC'97 device before registering it X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~181^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47e039413cacee70229ebbf6de5a8e3b27e6f057;p=pandora-kernel.git ASoC: Add support for allocating AC'97 device before registering it In some cases it is necessary to before additional operations after the device has been initialized and before the device is registered. This can for example be resetting the device. This patch introduces a new function snd_soc_alloc_ac97_codec() which is similar to snd_soc_new_ac97_codec() except that it does not register the device. Any users of snd_soc_alloc_ac97_codec() are responsible for calling device_add() manually. Fixes: 6794f709b712 ("ASoC: ac97: Drop delayed device registration") Reported-by: Manuel Lauss Signed-off-by: Lars-Peter Clausen Tested-by: Manuel Lauss Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- Reading git-diff-tree failed