summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/au1x/dbdma2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/au1x/dbdma2.c b/sound/soc/au1x/dbdma2.c
index fe9f4657c959..2ca33b09a867 100644
--- a/sound/soc/au1x/dbdma2.c
+++ b/sound/soc/au1x/dbdma2.c
@@ -488,11 +488,8 @@ EXPORT_SYMBOL_GPL(au1xpsc_pcm_add);
void au1xpsc_pcm_destroy(struct platform_device *dmapd)
{
- if (dmapd) {
- kfree(dmapd->resource);
- dmapd->resource = NULL;
+ if (dmapd)
platform_device_unregister(dmapd);
- }
}
EXPORT_SYMBOL_GPL(au1xpsc_pcm_destroy);