summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-07-21 18:37:14 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-07-21 18:37:14 +0200
commit2f0a6d1050384265b7bb8dbedc35084290081b3c (patch)
tree5183753677039d2110a108bdcc83bd19c316d2e0 /drivers/net
parent8b09e24a36395a14398923261dafc5df694c13e2 (diff)
downloadbarebox-2f0a6d1050384265b7bb8dbedc35084290081b3c.tar.gz
barebox-2f0a6d1050384265b7bb8dbedc35084290081b3c.tar.xz
miiphy: add device pointer to struct cdev
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/miiphy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/miiphy.c b/drivers/net/miiphy.c
index 30f235390b..64647bae00 100644
--- a/drivers/net/miiphy.c
+++ b/drivers/net/miiphy.c
@@ -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;
}