ASoC: wm5110: Unregister compressed platform when driver is removed
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Thu, 21 Jan 2016 14:41:12 +0000 (14:41 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 22 Jan 2016 16:42:23 +0000 (16:42 +0000)
commitf5ede8dcc3ec1fe5344f0d30717931a44e630631
treeda5101a6d1e95d7b7103f008d39a780a0c0db743
parent822ad70a2f5c420da5baa9f4354e6b7813ca6da9
ASoC: wm5110: Unregister compressed platform when driver is removed

The driver was not unregistering the compressed platform in
wm5110_remove(). If the codec is built as a module, this would
lead to a NULL pointer deref if the module was unloaded and then
re-probed.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm5110.c