diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-11-24 17:01:10 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-12-03 00:03:09 +0000 |
commit | 89e69fbfd18bf4ec9ce2663bcb35342aa8a2b3af (patch) | |
tree | bdf6ddd9bc6f439ab8b43c62b2fa20a3fb3b31fa /arch/arm/mm | |
parent | 6c044fecdf78be3fda159a5036bb33700cdd5e59 (diff) | |
download | op-kernel-dev-89e69fbfd18bf4ec9ce2663bcb35342aa8a2b3af.zip op-kernel-dev-89e69fbfd18bf4ec9ce2663bcb35342aa8a2b3af.tar.gz |
ARM: 8462/1: cache-uniphier: use common API to find the next level cache
The function uniphier_cache_get_next_level_node() does the same thing
as of_find_next_cache_node(). Drop the former and stick to the common
API.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/cache-uniphier.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/mm/cache-uniphier.c b/arch/arm/mm/cache-uniphier.c index 0502ba1..a6fa7b7 100644 --- a/arch/arm/mm/cache-uniphier.c +++ b/arch/arm/mm/cache-uniphier.c @@ -377,17 +377,6 @@ static const struct of_device_id uniphier_cache_match[] __initconst = { { /* sentinel */ } }; -static struct device_node * __init uniphier_cache_get_next_level_node( - struct device_node *np) -{ - u32 phandle; - - if (of_property_read_u32(np, "next-level-cache", &phandle)) - return NULL; - - return of_find_node_by_phandle(phandle); -} - static int __init __uniphier_cache_init(struct device_node *np, unsigned int *cache_level) { @@ -491,7 +480,7 @@ static int __init __uniphier_cache_init(struct device_node *np, * next level cache fails because we want to continue with available * cache levels. */ - next_np = uniphier_cache_get_next_level_node(np); + next_np = of_find_next_cache_node(np); if (next_np) { (*cache_level)++; ret = __uniphier_cache_init(next_np, cache_level); |