pci: initialize generic driver pointer
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Wed, 26 Apr 2017 08:07:24 +0000 (18:07 +1000)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 30 Apr 2017 13:28:01 +0000 (15:28 +0200)
commit7917d5f5ea46e6e812ffbcbb451533bee1252428
tree188c7ce148582a92289baabd81a9a1d5b38d632b
parent63985c5f104edbfe2a3933706a67a2e5af04e97b
pci: initialize generic driver pointer

The existing code initializes a PCI driver pointer but not the common one.
As the result, ring_dma_zone_reserve() in drivers/net/bnx2x/bnx2x_rxtx.c
crashed as dev->device->driver==NULL.

This adds missing initialization.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
lib/librte_eal/common/eal_common_pci.c