diff options
Diffstat (limited to 'drivers/net/ethernet/ibm/ibmveth.c')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmveth.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/ethernet/ibm/ibmveth.c b/drivers/net/ethernet/ibm/ibmveth.c index d654c234aaf7..c5be4ebd8437 100644 --- a/drivers/net/ethernet/ibm/ibmveth.c +++ b/drivers/net/ethernet/ibm/ibmveth.c | |||
@@ -1605,7 +1605,7 @@ static int ibmveth_probe(struct vio_dev *dev, const struct vio_device_id *id) | |||
1605 | struct net_device *netdev; | 1605 | struct net_device *netdev; |
1606 | struct ibmveth_adapter *adapter; | 1606 | struct ibmveth_adapter *adapter; |
1607 | unsigned char *mac_addr_p; | 1607 | unsigned char *mac_addr_p; |
1608 | unsigned int *mcastFilterSize_p; | 1608 | __be32 *mcastFilterSize_p; |
1609 | long ret; | 1609 | long ret; |
1610 | unsigned long ret_attr; | 1610 | unsigned long ret_attr; |
1611 | 1611 | ||
@@ -1627,8 +1627,9 @@ static int ibmveth_probe(struct vio_dev *dev, const struct vio_device_id *id) | |||
1627 | return -EINVAL; | 1627 | return -EINVAL; |
1628 | } | 1628 | } |
1629 | 1629 | ||
1630 | mcastFilterSize_p = (unsigned int *)vio_get_attribute(dev, | 1630 | mcastFilterSize_p = (__be32 *)vio_get_attribute(dev, |
1631 | VETH_MCAST_FILTER_SIZE, NULL); | 1631 | VETH_MCAST_FILTER_SIZE, |
1632 | NULL); | ||
1632 | if (!mcastFilterSize_p) { | 1633 | if (!mcastFilterSize_p) { |
1633 | dev_err(&dev->dev, "Can't find VETH_MCAST_FILTER_SIZE " | 1634 | dev_err(&dev->dev, "Can't find VETH_MCAST_FILTER_SIZE " |
1634 | "attribute\n"); | 1635 | "attribute\n"); |
@@ -1645,7 +1646,7 @@ static int ibmveth_probe(struct vio_dev *dev, const struct vio_device_id *id) | |||
1645 | 1646 | ||
1646 | adapter->vdev = dev; | 1647 | adapter->vdev = dev; |
1647 | adapter->netdev = netdev; | 1648 | adapter->netdev = netdev; |
1648 | adapter->mcastFilterSize = *mcastFilterSize_p; | 1649 | adapter->mcastFilterSize = be32_to_cpu(*mcastFilterSize_p); |
1649 | adapter->pool_config = 0; | 1650 | adapter->pool_config = 0; |
1650 | 1651 | ||
1651 | netif_napi_add(netdev, &adapter->napi, ibmveth_poll, 16); | 1652 | netif_napi_add(netdev, &adapter->napi, ibmveth_poll, 16); |