From afbad013a8978ebbe5d7ad9a357f67d71fe7005d Mon Sep 17 00:00:00 2001 From: Tarun Karela Date: Wed, 30 May 2018 12:19:26 +0100 Subject: [PATCH] [9610] wlbt: Fix compilation errir in netif.c (Android P) drivers/net/wireless/scsc/netif.c: In function 'slsi_if_setup': drivers/net/wireless/scsc/netif.c:1031:5: error: 'struct net_device' has no member named 'destructor' dev->destructor = free_netdev; Change-Id: I8e910880ba32a501a61bc82f7877f9c859f4a0de SCSC-Bug-Id: SSB-40175 Signed-off-by: Tarun Karela --- drivers/net/wireless/scsc/netif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/scsc/netif.c b/drivers/net/wireless/scsc/netif.c index cc94cf7b243a..a813568e74f3 100755 --- a/drivers/net/wireless/scsc/netif.c +++ b/drivers/net/wireless/scsc/netif.c @@ -1,4 +1,4 @@ -/***************************************************************************** +/* * * Copyright (c) 2012 - 2018 Samsung Electronics Co., Ltd. All rights reserved * @@ -1028,7 +1028,7 @@ static void slsi_if_setup(struct net_device *dev) { ether_setup(dev); dev->netdev_ops = &slsi_netdev_ops; - dev->destructor = free_netdev; + dev->priv_destructor = free_netdev; } static int slsi_netif_add_locked(struct slsi_dev *sdev, const char *name, int ifnum) -- 2.20.1