linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] powerpc/boot: remove unused function find_node_by_linuxphandle()
@ 2022-04-24 18:40 frowand.list
  2022-05-15 10:12 ` Michael Ellerman
  0 siblings, 1 reply; 2+ messages in thread
From: frowand.list @ 2022-04-24 18:40 UTC (permalink / raw)
  To: Michael Ellerman, Benjamin Herrenschmidt, Paul Mackerras
  Cc: Rob Herring, linuxppc-dev, linux-kernel

From: Frank Rowand <frank.rowand@sony.com>

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.

Signed-off-by: Frank Rowand <frank.rowand@sony.com>
---
 arch/powerpc/boot/ops.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h
index 6455fc9a244f..8334bc3cbe49 100644
--- a/arch/powerpc/boot/ops.h
+++ b/arch/powerpc/boot/ops.h
@@ -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)
-- 
Frank Rowand <frank.rowand@sony.com>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] powerpc/boot: remove unused function find_node_by_linuxphandle()
  2022-04-24 18:40 [PATCH 1/1] powerpc/boot: remove unused function find_node_by_linuxphandle() frowand.list
@ 2022-05-15 10:12 ` Michael Ellerman
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2022-05-15 10:12 UTC (permalink / raw)
  To: frowand.list, Paul Mackerras, Michael Ellerman, Benjamin Herrenschmidt
  Cc: linuxppc-dev, linux-kernel, Rob Herring

On Sun, 24 Apr 2022 13:40:14 -0500, frowand.list@gmail.com wrote:
> From: Frank Rowand <frank.rowand@sony.com>
> 
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-15 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-24 18:40 [PATCH 1/1] powerpc/boot: remove unused function find_node_by_linuxphandle() frowand.list
2022-05-15 10:12 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).