[9610] wlbt: Fix compilation errir in netif.c (Android P)
authorTarun Karela <t.karela@samsung.com>
Wed, 30 May 2018 11:19:26 +0000 (12:19 +0100)
committerYoungsoo Kim <youngss.kim@samsung.com>
Fri, 15 Jun 2018 22:47:15 +0000 (07:47 +0900)
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 <t.karela@samsung.com>
drivers/net/wireless/scsc/netif.c

index cc94cf7b243a2e01648f21ef362457e657531a42..a813568e74f30fa6ef3d81ab64043e4c1a984a56 100755 (executable)
@@ -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)