diff options
author | Eli Billauer <eli.billauer@gmail.com> | 2014-05-16 11:26:35 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-24 02:19:25 +0900 |
commit | 43339bed7010da6e7cf797db3216a136a974a0cd (patch) | |
tree | 3ee6929132df08a32ff8887297181da78de7715b /include/linux/device.h | |
parent | 8ffca9eae662004016a6d60a2a79ce93f81f150e (diff) | |
download | linux-43339bed7010da6e7cf797db3216a136a974a0cd.tar.gz linux-43339bed7010da6e7cf797db3216a136a974a0cd.tar.bz2 linux-43339bed7010da6e7cf797db3216a136a974a0cd.zip |
devres: Add devm_get_free_pages API
devm_get_free_pages() and devm_free_pages() are the managed counterparts
for __get_free_pages() and free_pages().
Signed-off-by: Eli Billauer <eli.billauer@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index ab871588da89..3dc69a2faa51 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -626,6 +626,10 @@ extern char *devm_kstrdup(struct device *dev, const char *s, gfp_t gfp); extern void *devm_kmemdup(struct device *dev, const void *src, size_t len, gfp_t gfp); +extern unsigned long devm_get_free_pages(struct device *dev, + gfp_t gfp_mask, unsigned int order); +extern void devm_free_pages(struct device *dev, unsigned long addr); + void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res); void __iomem *devm_request_and_ioremap(struct device *dev, struct resource *res); |