From: David S. Miller Date: Thu, 8 Jun 2017 14:16:05 +0000 (-0400) Subject: hsi: Fix build regression due to netdev destructor fix. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ed66e50d9587fc0bb032e276a2563c0068a5b63a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git hsi: Fix build regression due to netdev destructor fix. > ../drivers/hsi/clients/ssi_protocol.c:1069:5: error: 'struct net_device' has no member named 'destructor' Reported-by: Mark Brown Reported-by: Stephen Rothwell Signed-off-by: David S. Miller --- diff --git a/drivers/hsi/clients/ssi_protocol.c b/drivers/hsi/clients/ssi_protocol.c index 26b05106f0d3..93d28c0ec8bf 100644 --- a/drivers/hsi/clients/ssi_protocol.c +++ b/drivers/hsi/clients/ssi_protocol.c @@ -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; }