--- c146304d8d6ca6398b22a3bef00e10416719fe79 +++ c0ceebccaa49ce38b75df1c9c30a67ec56c4b7b0 @@ -854,8 +854,8 @@ static void ks_update_link_status(struct static irqreturn_t ks_irq(int irq, void *pw) { - struct ks_net *ks = pw; - struct net_device *netdev = ks->netdev; + struct net_device *netdev = pw; + struct ks_net *ks = netdev_priv(netdev); u16 status; /*this should be the first in IRQ handler */