Network: convert network devices to use struct device instead of class_device
[linux-2.6-block.git] / drivers / net / arm / at91_ether.c
index fada15d959dec6fd6a7e8f72c8c32ed50afdb3df..1621b8fe35cf6321b4feebc830ef1af52d5d8a26 100644 (file)
@@ -641,7 +641,7 @@ static void at91ether_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo
 {
        strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
        strlcpy(info->version, DRV_VERSION, sizeof(info->version));
-       strlcpy(info->bus_info, dev->class_dev.dev->bus_id, sizeof(info->bus_info));
+       strlcpy(info->bus_info, dev->dev.parent->bus_id, sizeof(info->bus_info));
 }
 
 static const struct ethtool_ops at91ether_ethtool_ops = {