netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] bcm87xx: Add MODULE_DEVICE_TABLE
@ 2013-09-01 21:33 Ben Hutchings
  2013-09-03 17:32 ` David Daney
  0 siblings, 1 reply; 6+ messages in thread
From: Ben Hutchings @ 2013-09-01 21:33 UTC (permalink / raw)
  To: David Miller; +Cc: David Daney, netdev

[-- Attachment #1: Type: text/plain, Size: 705 bytes --]

bcm87xx currently isn't auto-loaded if built as a module.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
Compile-tested only.

Ben.

 drivers/net/phy/bcm87xx.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/net/phy/bcm87xx.c b/drivers/net/phy/bcm87xx.c
index 7997895..f5b44ff 100644
--- a/drivers/net/phy/bcm87xx.c
+++ b/drivers/net/phy/bcm87xx.c
@@ -230,4 +230,11 @@ static void __exit bcm87xx_exit(void)
 }
 module_exit(bcm87xx_exit);
 
+static struct mdio_device_id __maybe_unused bcm87xx_tbl[] = {
+	{ PHY_ID_BCM8706, 0xffffffff },
+	{ PHY_ID_BCM8727, 0xffffffff },
+	{ }
+};
+
 MODULE_LICENSE("GPL");
+MODULE_DEVICE_TABLE(mdio, bcm87xx_tbl);


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

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

end of thread, other threads:[~2013-09-03 20:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-01 21:33 [PATCH net-next] bcm87xx: Add MODULE_DEVICE_TABLE Ben Hutchings
2013-09-03 17:32 ` David Daney
2013-09-03 18:53   ` Ben Hutchings
2013-09-03 19:13     ` David Daney
2013-09-03 19:28       ` David Daney
2013-09-03 20:53         ` Ben Hutchings

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).