[PATCH] miidev: allow multiple dev
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Fri Nov 26 14:56:39 EST 2010
now we need to set the dev id to -1
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at 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
More information about the barebox
mailing list