mlx4: do not set struct device * to NULL
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 4 Oct 2019 19:23:40 +0000 (15:23 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 8 Oct 2019 21:11:10 +0000 (17:11 -0400)
commitab58204edfba565a724724faf9a8e7e9ccce94fb
tree555abd0df643922bc2489412c532073942adad12
parent91f3599c97f9c2001150a9cfc322ce0de93637d1
mlx4: do not set struct device * to NULL

This driver was ported back before we had any struct device in
pci_device.  We don't use it for much, but I can use it to find the
pci_device for a given Linux driver's device.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/net/mlx4/alloc.c
kern/drivers/net/mlx4/en_main.c
kern/drivers/net/mlx4/en_netdev.c
kern/drivers/net/mlx4/icm.c
kern/drivers/net/mlx4/mlx4_en.h