mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
fe54b1fd49
commit
172cb4b3d4
@ -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));
|
||||
dma_pool_destroy(pool);
|
||||
WARN_ON(devres_release(dev, dmam_pool_release, dmam_pool_match, pool));
|
||||
}
|
||||
EXPORT_SYMBOL(dmam_pool_destroy);
|
||||
|
Loading…
Reference in New Issue
Block a user