|
|
@@ -1618,7 +1618,7 @@ static int ibmveth_probe(struct vio_dev *dev, const struct vio_device_id *id)
|
|
|
struct net_device *netdev;
|
|
|
struct ibmveth_adapter *adapter;
|
|
|
unsigned char *mac_addr_p;
|
|
|
- unsigned int *mcastFilterSize_p;
|
|
|
+ __be32 *mcastFilterSize_p;
|
|
|
long ret;
|
|
|
unsigned long ret_attr;
|
|
|
|
|
|
@@ -1640,8 +1640,9 @@ static int ibmveth_probe(struct vio_dev *dev, const struct vio_device_id *id)
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
- mcastFilterSize_p = (unsigned int *)vio_get_attribute(dev,
|
|
|
- VETH_MCAST_FILTER_SIZE, NULL);
|
|
|
+ mcastFilterSize_p = (__be32 *)vio_get_attribute(dev,
|
|
|
+ VETH_MCAST_FILTER_SIZE,
|
|
|
+ NULL);
|
|
|
if (!mcastFilterSize_p) {
|
|
|
dev_err(&dev->dev, "Can't find VETH_MCAST_FILTER_SIZE "
|
|
|
"attribute\n");
|
|
|
@@ -1658,7 +1659,7 @@ static int ibmveth_probe(struct vio_dev *dev, const struct vio_device_id *id)
|
|
|
|
|
|
adapter->vdev = dev;
|
|
|
adapter->netdev = netdev;
|
|
|
- adapter->mcastFilterSize = *mcastFilterSize_p;
|
|
|
+ adapter->mcastFilterSize = be32_to_cpu(*mcastFilterSize_p);
|
|
|
adapter->pool_config = 0;
|
|
|
|
|
|
netif_napi_add(netdev, &adapter->napi, ibmveth_poll, 16);
|