netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mv643xx_eth: Define module alias for platform device
@ 2008-02-16 17:16 Martin Michlmayr
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Michlmayr @ 2008-02-16 17:16 UTC (permalink / raw)
  To: Dale Farnsworth, netdev

The mv643xx_eth driver can be loaded as a platform device, as is done by
various Orion (ARM) based devices.  The driver needs to define a module
alias for the platform driver so udev will load it automatically.
Tested with Debian on a QNAP TS-209.

Signed-off-by: Martin Michlmayr <tbm@cyrius.com>

--- a/drivers/net/mv643xx_eth.c
+++ b/drivers/net/mv643xx_eth.c
@@ -2104,6 +2104,7 @@ MODULE_LICENSE("GPL");
 MODULE_AUTHOR(	"Rabeeh Khoury, Assaf Hoffman, Matthew Dharm, Manish Lachwani"
 		" and Dale Farnsworth");
 MODULE_DESCRIPTION("Ethernet driver for Marvell MV643XX");
+MODULE_ALIAS("platform:mv643xx_eth");
 
 /*
  * The second part is the low level driver of the gigE ethernet ports.

-- 
Martin Michlmayr
http://www.cyrius.com/

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

* [PATCH] mv643xx_eth: Define module alias for platform device
@ 2008-02-28 20:11 Martin Michlmayr
  2008-03-05 11:28 ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Michlmayr @ 2008-02-28 20:11 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Dale Farnsworth, netdev

The mv643xx_eth driver can be loaded as a platform device, as is done by
various Orion (ARM) based devices.  The driver needs to define a module
alias for the platform driver so udev will load it automatically.
Tested with Debian on a QNAP TS-209.

Signed-off-by: Martin Michlmayr <tbm@cyrius.com>

--- a/drivers/net/mv643xx_eth.c
+++ b/drivers/net/mv643xx_eth.c
@@ -2104,6 +2104,7 @@ MODULE_LICENSE("GPL");
 MODULE_AUTHOR(	"Rabeeh Khoury, Assaf Hoffman, Matthew Dharm, Manish Lachwani"
 		" and Dale Farnsworth");
 MODULE_DESCRIPTION("Ethernet driver for Marvell MV643XX");
+MODULE_ALIAS("platform:mv643xx_eth");
 
 /*
  * The second part is the low level driver of the gigE ethernet ports.

-- 
Martin Michlmayr
http://www.cyrius.com/

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

* Re: [PATCH] mv643xx_eth: Define module alias for platform device
  2008-02-28 20:11 [PATCH] mv643xx_eth: Define module alias for platform device Martin Michlmayr
@ 2008-03-05 11:28 ` Jeff Garzik
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2008-03-05 11:28 UTC (permalink / raw)
  To: Martin Michlmayr; +Cc: Dale Farnsworth, netdev

applied



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

end of thread, other threads:[~2008-03-05 11:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-28 20:11 [PATCH] mv643xx_eth: Define module alias for platform device Martin Michlmayr
2008-03-05 11:28 ` Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2008-02-16 17:16 Martin Michlmayr

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