igb_uio: fix build on Linux < 3.16
authorScott Branden <scott.branden@broadcom.com>
Tue, 17 Apr 2018 17:52:25 +0000 (10:52 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 20 Apr 2018 09:10:55 +0000 (11:10 +0200)
commit08efcf533f6a1dc5b12bcf1d5ded83743b8d5cc4
tree995dd330be9ef25594549886a77b72775375456c
parente70e26861eaf735a296807a909d7c5c2a568a1c2
igb_uio: fix build on Linux < 3.16

Starting from Linux v3.16 pci_is_bridge() is in linux/pci.h,
 in previous versions it is in drivers/pci/pci.h which is private header.

Fix build error when calling pci_is_bridge by not calling/supporting
pci_is_bridge with kernel versions before 3.16.

Fixes: 6f0841b7701b ("igb_uio: bind error if PCIe bridge")

Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
kernel/linux/igb_uio/compat.h
kernel/linux/igb_uio/igb_uio.c