提交 172cb4b3 编写于 作者: A Andy Shevchenko 提交者: Linus Torvalds

mm/dmapool.c: reuse devres_release() to free resources

Instead of calling an additional routine in dmam_pool_destroy() rely on
what dmam_pool_release() is doing.
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 fe54b1fd
...@@ -500,7 +500,6 @@ void dmam_pool_destroy(struct dma_pool *pool) ...@@ -500,7 +500,6 @@ void dmam_pool_destroy(struct dma_pool *pool)
{ {
struct device *dev = pool->dev; struct device *dev = pool->dev;
WARN_ON(devres_destroy(dev, dmam_pool_release, dmam_pool_match, pool)); WARN_ON(devres_release(dev, dmam_pool_release, dmam_pool_match, pool));
dma_pool_destroy(pool);
} }
EXPORT_SYMBOL(dmam_pool_destroy); EXPORT_SYMBOL(dmam_pool_destroy);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册