Skip to contentSkip to conversation

miidev: allow multiple dev

PATCH New Jean-Christophe PLAGNIOL-VILLARD 1 participant 1 message Nov 26, 2010 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 miidev: allow multiple dev

now we need to set the dev id to -1

---
 drivers/net/miidev.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/miidev.c +1 -0
index 343eb40..3d552db 100644
@@ -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);
Signature · 7 lines
1.7.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox