summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-08-01 08:58:06 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-08-01 08:58:06 +0200
commitec1b86784d4c08f8f0897161e142745080625698 (patch)
treef37f6b91a681988dabd1aa0c2d07e9ef1b100f62 /drivers
parent59bfe6e0c3332ec804bcc61a264eb1b43cd04570 (diff)
downloadbarebox-ec1b86784d4c08f8f0897161e142745080625698.tar.gz
barebox-ec1b86784d4c08f8f0897161e142745080625698.tar.xz
[MIIPHY] Add default open/close functions
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/miiphy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/miiphy.c b/drivers/net/miiphy.c
index 9c2ad30e3f..9afaaa0a88 100644
--- a/drivers/net/miiphy.c
+++ b/drivers/net/miiphy.c
@@ -173,6 +173,8 @@ int miiphy_register(struct miiphy_device *mdev)
static struct driver_d miiphy_drv = {
.name = "miiphy",
.probe = miiphy_probe,
+ .open = dev_open_default,
+ .close = dev_close_default,
.read = miiphy_read,
.write = miiphy_write,
.type = DEVICE_TYPE_MIIPHY,