* [PATCH] miidev: allow multiple dev
@ 2010-11-26 19:56 Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; only message in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2010-11-26 19:56 UTC (permalink / raw)
To: barebox
now we need to set the dev id to -1
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
drivers/net/miidev.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/miidev.c b/drivers/net/miidev.c
index 343eb40..3d552db 100644
--- a/drivers/net/miidev.c
+++ b/drivers/net/miidev.c
@@ -208,6 +208,7 @@ static struct driver_d miidev_drv = {
int mii_register(struct mii_device *mdev)
{
mdev->dev.priv = mdev;
+ mdev->dev.id = -1;
strcpy(mdev->dev.name, "miidev");
return register_device(&mdev->dev);
--
1.7.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-26 20:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-26 19:56 [PATCH] miidev: allow multiple dev Jean-Christophe PLAGNIOL-VILLARD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox