Skip to contentSkip to conversation

powerpc/boot: remove unused function find_node_by_linuxphandle()

PATCH Applied [email protected] 2 participants 2 messages Apr 24, 2022 – May 15, 2022 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/boot: remove unused function find_node_by_linuxphandle()

From: Frank Rowand <[email protected]>

The last user of find_node_by_linuxphandle() was removed in v4.18-rc1
by commit 30f4bbe0472a ("powerpc/boot: Remove support for Marvell MPSC serial controller") four years ago. This function is no longer needed.

---
 arch/powerpc/boot/ops.h | 6 ------
 1 file changed, 6 deletions(-)
arch/powerpc/boot/ops.h +0 -6
index 6455fc9a244f..8334bc3cbe49 100644
@@ -200,12 +200,6 @@ void __dt_fixup_mac_addresses(u32 startindex, ...);
 	__dt_fixup_mac_addresses(0, __VA_ARGS__, NULL)
 
 
-static inline void *find_node_by_linuxphandle(const u32 linuxphandle)
-{
-	return find_node_by_prop_value(NULL, "linux,phandle",
-			(char *)&linuxphandle, sizeof(u32));
-}
-
 static inline char *get_path(const void *phandle, char *buf, int len)
 {
 	if (dt_ops.get_path)
Signature · 1 line
Frank Rowand <[email protected]>
#1 lore raw
Quoted 8 lines · On Sun, 24 Apr 2022 13:40:14 -0500, [email protected] wrote:

From: Frank Rowand <[email protected]>

The last user of find_node_by_linuxphandle() was removed in v4.18-rc1
by commit 30f4bbe0472a ("powerpc/boot: Remove support for Marvell MPSC serial controller") four years ago. This function is no longer needed.

[...]

Applied to powerpc/next.

[1/1] powerpc/boot: remove unused function find_node_by_linuxphandle()

      https://git.kernel.org/powerpc/c/2fb70d1d36e2f8482a78bb8aae688ae1416af889

cheers