]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/net/ethernet/moxa/moxart_ether.c
net/mlx4: Replace ENOSYS with better fitting error codes
[mirror_ubuntu-artful-kernel.git] / drivers / net / ethernet / moxa / moxart_ether.c
index 9774b50cff6e6b3e9a71b06198bbddbe5aa503e5..06c9f4100cb9bd8c0abecada5fa922c7e779fc51 100644 (file)
@@ -269,7 +269,7 @@ rx_next:
        }
 
        if (rx < budget) {
-               napi_complete(napi);
+               napi_complete_done(napi, rx);
        }
 
        priv->reg_imr |= RPKT_FINISH_M;
@@ -436,7 +436,7 @@ static void moxart_mac_set_rx_mode(struct net_device *ndev)
        spin_unlock_irq(&priv->txlock);
 }
 
-static struct net_device_ops moxart_netdev_ops = {
+static const struct net_device_ops moxart_netdev_ops = {
        .ndo_open               = moxart_mac_open,
        .ndo_stop               = moxart_mac_stop,
        .ndo_start_xmit         = moxart_mac_start_xmit,