diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2002-04-09 15:14:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-07 13:37:11 -0500 |
commit | 43cb76d91ee85f579a69d42bc8efc08bac560278 (patch) | |
tree | f5c4766a6639fee3685dbbfc9110bb334af9e6dd /drivers/net/arm | |
parent | 2943ecf2ed32632473c06f1975db47a7aa98c10f (diff) |
Network: convert network devices to use struct device instead of class_device
This lets the network core have the ability to handle suspend/resume
issues, if it wants to.
Thanks to Frederik Deweerdt <frederik.deweerdt@gmail.com> for the arm
driver fixes.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net/arm')
-rw-r--r-- | drivers/net/arm/at91_ether.c | 2 | ||||
-rw-r--r-- | drivers/net/arm/etherh.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/arm/at91_ether.c b/drivers/net/arm/at91_ether.c index fada15d959de..1621b8fe35cf 100644 --- a/drivers/net/arm/at91_ether.c +++ b/drivers/net/arm/at91_ether.c | |||
@@ -641,7 +641,7 @@ static void at91ether_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo | |||
641 | { | 641 | { |
642 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); | 642 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
643 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); | 643 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
644 | strlcpy(info->bus_info, dev->class_dev.dev->bus_id, sizeof(info->bus_info)); | 644 | strlcpy(info->bus_info, dev->dev.parent->bus_id, sizeof(info->bus_info)); |
645 | } | 645 | } |
646 | 646 | ||
647 | static const struct ethtool_ops at91ether_ethtool_ops = { | 647 | static const struct ethtool_ops at91ether_ethtool_ops = { |
diff --git a/drivers/net/arm/etherh.c b/drivers/net/arm/etherh.c index f3faa4fe58e7..72c41f5907f2 100644 --- a/drivers/net/arm/etherh.c +++ b/drivers/net/arm/etherh.c | |||
@@ -587,7 +587,7 @@ static void etherh_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *i | |||
587 | { | 587 | { |
588 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); | 588 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
589 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); | 589 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
590 | strlcpy(info->bus_info, dev->class_dev.dev->bus_id, | 590 | strlcpy(info->bus_info, dev->dev.parent->bus_id, |
591 | sizeof(info->bus_info)); | 591 | sizeof(info->bus_info)); |
592 | } | 592 | } |
593 | 593 | ||