Linux-MIPS Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] tc: Make tc_match_device() static
@ 2020-01-12 16:52 Geert Uytterhoeven
  2020-01-13 19:10 ` Paul Burton
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2020-01-12 16:52 UTC (permalink / raw)
  To: Maciej W . Rozycki, Ralf Baechle
  Cc: linux-mips, linux-kernel, Geert Uytterhoeven

Unlike its PCI counterpart, tc_match_device() was never used outside
the TURBOchannel bus code.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/tc/tc-driver.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/tc/tc-driver.c b/drivers/tc/tc-driver.c
index 16b5bae63c749019..d45f2c1ff34145b0 100644
--- a/drivers/tc/tc-driver.c
+++ b/drivers/tc/tc-driver.c
@@ -56,8 +56,8 @@ EXPORT_SYMBOL(tc_unregister_driver);
  * system is in its list of supported devices.  Returns the matching
  * tc_device_id structure or %NULL if there is no match.
  */
-const struct tc_device_id *tc_match_device(struct tc_driver *tdrv,
-					   struct tc_dev *tdev)
+static const struct tc_device_id *tc_match_device(struct tc_driver *tdrv,
+						  struct tc_dev *tdev)
 {
 	const struct tc_device_id *id = tdrv->id_table;
 
@@ -71,7 +71,6 @@ const struct tc_device_id *tc_match_device(struct tc_driver *tdrv,
 	}
 	return NULL;
 }
-EXPORT_SYMBOL(tc_match_device);
 
 /**
  * tc_bus_match - Tell if a device structure has a matching
-- 
2.17.1


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

* Re: [PATCH] tc: Make tc_match_device() static
  2020-01-12 16:52 [PATCH] tc: Make tc_match_device() static Geert Uytterhoeven
@ 2020-01-13 19:10 ` Paul Burton
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Burton @ 2020-01-13 19:10 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Maciej W . Rozycki, Ralf Baechle, linux-mips, linux-kernel,
	Geert Uytterhoeven, linux-mips

Hello,

Geert Uytterhoeven wrote:
> Unlike its PCI counterpart, tc_match_device() was never used outside
> the TURBOchannel bus code.

Applied to mips-next.

> commit 3d9f44ef7553
> https://git.kernel.org/mips/c/3d9f44ef7553
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Signed-off-by: Paul Burton <paulburton@kernel.org>

Thanks,
    Paul

[ This message was auto-generated; if you believe anything is incorrect
  then please email paulburton@kernel.org to report it. ]

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-12 16:52 [PATCH] tc: Make tc_match_device() static Geert Uytterhoeven
2020-01-13 19:10 ` Paul Burton

Linux-MIPS Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-mips/0 linux-mips/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mips linux-mips/ https://lore.kernel.org/linux-mips \
		linux-mips@vger.kernel.org
	public-inbox-index linux-mips

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-mips


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git