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>
/* reference driver structure */
dev->driver = dr;
/* reference driver structure */
dev->driver = dr;
+ dev->device.driver = &dr->driver;
/* call the driver probe() function */
ret = dr->probe(dr, dev);
/* call the driver probe() function */
ret = dr->probe(dr, dev);