aboutsummaryrefslogtreecommitdiffstats
path: root/lib/genalloc.c
diff options
context:
space:
mode:
authorVladimir Zapolskiy <[email protected]>2015-06-30 22:00:03 +0000
committerLinus Torvalds <[email protected]>2015-07-01 02:45:01 +0000
commit0030edf296db8a7afb13573eb12977b7d399cd40 (patch)
tree34aa823495537f5735286df8f3835d460a840a7e /lib/genalloc.c
parentx86: opt into HAVE_COPY_THREAD_TLS, for both 32-bit and 64-bit (diff)
downloadkernel-0030edf296db8a7afb13573eb12977b7d399cd40.tar.gz
kernel-0030edf296db8a7afb13573eb12977b7d399cd40.zip
genalloc: rename dev_get_gen_pool() to gen_pool_get()
To be consistent with other genalloc interface namings, rename dev_get_gen_pool() to gen_pool_get(). The original omitted "dev_" prefix is removed, since it points to argument type of the function, and so it does not bring any useful information. [[email protected]: update arch/arm/mach-socfpga/pm.c] Signed-off-by: Vladimir Zapolskiy <[email protected]> Acked-by: Nicolas Ferre <[email protected]> Cc: Philipp Zabel <[email protected]> Cc: Shawn Guo <[email protected]> Cc: Sascha Hauer <[email protected]> Cc: Alexandre Belloni <[email protected]> Cc: Russell King <[email protected]> Cc: Mauro Carvalho Chehab <[email protected]> Cc: Vinod Koul <[email protected]> Cc: Takashi Iwai <[email protected]> Cc: Jaroslav Kysela <[email protected]> Cc: Mark Brown <[email protected]> Cc: Nicolas Ferre <[email protected]> Cc: Alan Tull <[email protected]> Cc: Dinh Nguyen <[email protected]> Cc: Kevin Hilman <[email protected]> Cc: Stephen Rothwell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/genalloc.c')
-rw-r--r--lib/genalloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/genalloc.c b/lib/genalloc.c
index d214866eeea2..948e92cd9794 100644
--- a/lib/genalloc.c
+++ b/lib/genalloc.c
@@ -602,12 +602,12 @@ struct gen_pool *devm_gen_pool_create(struct device *dev, int min_alloc_order,
EXPORT_SYMBOL(devm_gen_pool_create);
/**
- * dev_get_gen_pool - Obtain the gen_pool (if any) for a device
+ * gen_pool_get - Obtain the gen_pool (if any) for a device
* @dev: device to retrieve the gen_pool from
*
* Returns the gen_pool for the device if one is present, or NULL.
*/
-struct gen_pool *dev_get_gen_pool(struct device *dev)
+struct gen_pool *gen_pool_get(struct device *dev)
{
struct gen_pool **p = devres_find(dev, devm_gen_pool_release, NULL,
NULL);
@@ -616,7 +616,7 @@ struct gen_pool *dev_get_gen_pool(struct device *dev)
return NULL;
return *p;
}
-EXPORT_SYMBOL_GPL(dev_get_gen_pool);
+EXPORT_SYMBOL_GPL(gen_pool_get);
#ifdef CONFIG_OF
/**
@@ -642,7 +642,7 @@ struct gen_pool *of_get_named_gen_pool(struct device_node *np,
of_node_put(np_pool);
if (!pdev)
return NULL;
- return dev_get_gen_pool(&pdev->dev);
+ return gen_pool_get(&pdev->dev);
}
EXPORT_SYMBOL_GPL(of_get_named_gen_pool);
#endif /* CONFIG_OF */