miiphy: add device pointer to struct cdev
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
8b09e24a36
commit
2f0a6d1050
|
@ -181,6 +181,7 @@ static int miiphy_probe(struct device_d *dev)
|
|||
mdev->cdev.size = 32;
|
||||
mdev->cdev.ops = &miiphy_ops;
|
||||
mdev->cdev.priv = mdev;
|
||||
mdev->cdev.dev = dev;
|
||||
devfs_create(&mdev->cdev);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue