From ac9436dc7f79a4cd3be48d81d3e76ab88a06a349 Mon Sep 17 00:00:00 2001 From: Manuel Lauss Date: Tue, 1 Dec 2009 18:10:34 +0100 Subject: [PATCH] --- yaml --- r: 170260 b: refs/heads/master c: 1bc8079879e8edfff451b62b7550bdd18523f963 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/soc/au1x/dbdma2.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 34b63ca6f75b..f6fafd73a2a2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a649d1fcc9bd2299cb06b6594fabb429fa50f174 +refs/heads/master: 1bc8079879e8edfff451b62b7550bdd18523f963 diff --git a/trunk/sound/soc/au1x/dbdma2.c b/trunk/sound/soc/au1x/dbdma2.c index fe9f4657c959..2ca33b09a867 100644 --- a/trunk/sound/soc/au1x/dbdma2.c +++ b/trunk/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);