]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: unisys: visornic: use preferred interface for setting netdev's parent
authorTim Sell <Timothy.Sell@unisys.com>
Thu, 9 Jul 2015 17:27:51 +0000 (13:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jul 2015 01:34:59 +0000 (18:34 -0700)
Just switch this line so it uses the correct function call.

Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c

index 07e89ad92a6660c9e1ce9b27196a824343d9c2c4..9b3c5d876b86e080c706a53b708b000b7c5c552a 100644 (file)
@@ -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;