hsi: Fix build regression due to netdev destructor fix.
authorDavid S. Miller <davem@davemloft.net>
Thu, 8 Jun 2017 14:16:05 +0000 (10:16 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jun 2017 14:16:05 +0000 (10:16 -0400)
> ../drivers/hsi/clients/ssi_protocol.c:1069:5: error: 'struct net_device' has no member named 'destructor'

Reported-by: Mark Brown <broonie@kernel.org>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/hsi/clients/ssi_protocol.c

index 26b05106f0d3152e74bc0377dc9006203fc2c7db..93d28c0ec8bf0ef867bc958592c58f60d3ce2913 100644 (file)
@@ -1066,7 +1066,7 @@ static void ssip_pn_setup(struct net_device *dev)
        dev->addr_len           = 1;
        dev->tx_queue_len       = SSIP_TXQUEUE_LEN;
 
-       dev->destructor         = free_netdev;
+       dev->needs_free_netdev  = true;
        dev->header_ops         = &phonet_header_ops;
 }