pci: pci_switch_module cleanup
authorDavid Marchand <david.marchand@6wind.com>
Fri, 9 May 2014 13:15:57 +0000 (15:15 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 13 May 2014 11:21:22 +0000 (13:21 +0200)
commitd8deab8a8820eea89a684469bce68ef5c6aa768f
tree38a6a69076a17c3c77ac154e71f3d56cb1c468cc
parentd3e6faf8405e1e527fba5c55edfa147e57c6ae0d
pci: pci_switch_module cleanup

The pci_switch_module() function should only do what its name tells: unbind pci
devices and rebind them on the specified kernel driver.
Hence, it can not call pci_uio_map_resource().

Call to pci_uio_map_resource() should be moved to rte_eal_pci_probe_one_driver()
so that we can factorize code.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
lib/librte_eal/linuxapp/eal/eal_pci.c