Commit 172cb4b3 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Torvalds
Browse files

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: default avatarAndy Shevchenko <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent fe54b1fd
......@@ -500,7 +500,6 @@ void dmam_pool_destroy(struct dma_pool *pool)
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));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment