diff options
| -rw-r--r-- | sound/soc/au1x/dbdma2.c | 5 |
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); | |||
| 488 | 488 | ||
| 489 | void au1xpsc_pcm_destroy(struct platform_device *dmapd) | 489 | void au1xpsc_pcm_destroy(struct platform_device *dmapd) |
| 490 | { | 490 | { |
| 491 | if (dmapd) { | 491 | if (dmapd) |
| 492 | kfree(dmapd->resource); | ||
| 493 | dmapd->resource = NULL; | ||
| 494 | platform_device_unregister(dmapd); | 492 | platform_device_unregister(dmapd); |
| 495 | } | ||
| 496 | } | 493 | } |
| 497 | EXPORT_SYMBOL_GPL(au1xpsc_pcm_destroy); | 494 | EXPORT_SYMBOL_GPL(au1xpsc_pcm_destroy); |
| 498 | 495 | ||
