From: Tim Sell Date: Thu, 9 Jul 2015 17:27:51 +0000 (-0400) Subject: staging: unisys: visornic: use preferred interface for setting netdev's parent X-Git-Tag: firefly_0821_release~176^2~1221^2~666 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=051e9fbbba1594331a9b3b2b157b5a0ce54b9a43;p=firefly-linux-kernel-4.4.55.git staging: unisys: visornic: use preferred interface for setting netdev's parent Just switch this line so it uses the correct function call. Signed-off-by: Tim Sell Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c index 07e89ad92a66..9b3c5d876b86 100644 --- a/drivers/staging/unisys/visornic/visornic_main.c +++ b/drivers/staging/unisys/visornic/visornic_main.c @@ -1869,7 +1869,7 @@ static int visornic_probe(struct visor_device *dev) netdev->netdev_ops = &visornic_dev_ops; netdev->watchdog_timeo = (5 * HZ); - netdev->dev.parent = &dev->device; + SET_NETDEV_DEV(netdev, &dev->device); /* Get MAC adddress from channel and read it into the device. */ netdev->addr_len = ETH_ALEN;