dev->stats.rx_packets++;
dev->stats.rx_bytes += pktlen;
- skb = build_skb(ring->buf[i].rx_buf);
+ skb = build_skb(ring->buf[i].rx_buf, 0);
if (!skb) {
kfree(ring->buf[i].rx_buf);
goto next;
goto err_out;
}
- if (pdata->mii_bus_dev == NULL) {
+ if (pdata->mii_bus_dev == NULL && pdata->phy_mask) {
dev_err(&pdev->dev, "no MII bus device specified\n");
err = -EINVAL;
goto err_out;