miidev: allow multiple dev
now we need to set the dev id to -1 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
f69626c632
commit
a6e514b388
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue