bus/pci: reference driver structure before mapping
authorRafal Kozik <rk@semihalf.com>
Fri, 29 Jun 2018 13:54:06 +0000 (15:54 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 29 Jun 2018 22:12:58 +0000 (00:12 +0200)
commit1d20a073fa5eb04b9ab4a06ea71b770c17bc35c6
tree8ac90b4c85526a19a97185cd57300c883b991fa8
parenteeffc9ef70a5c2f88a10233ecddb5ae2d2b5fd38
bus/pci: reference driver structure before mapping

Add pointer to driver structure before calling rte_pci_map_device.
It allows to use driver flags for adjusting configuration.

Signed-off-by: Rafal Kozik <rk@semihalf.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/bus/pci/pci_common.c