9
0
Fork 0

miiphy: add device pointer to struct cdev

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2009-07-21 18:37:14 +02:00
parent 8b09e24a36
commit 2f0a6d1050
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}