From acfec5dfbbf83bff320cefcafa6e392b8650fe5d Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Sat, 30 Nov 2013 17:05:12 -0600 Subject: [PATCH] wcxb: is_pcie -> pci_is_pcie() is_pcie attribute was finally dropped from struct pci_dev in upstream commit 115e3bc5e23e7ec3c85a2014bfa96c0ddd036083. Signed-off-by: Shaun Ruffell --- drivers/dahdi/wcxb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/dahdi/wcxb.c b/drivers/dahdi/wcxb.c index 6266523..a418447 100644 --- a/drivers/dahdi/wcxb.c +++ b/drivers/dahdi/wcxb.c @@ -122,11 +122,15 @@ struct wcxb_meta_desc { static inline bool wcxb_is_pcie(const struct wcxb *xb) { +#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 33) + return pci_is_pcie(xb->pdev); +#else #ifndef WCXB_PCI_DEV_DOES_NOT_HAVE_IS_PCIE return (xb->pdev->is_pcie > 0); #else return (xb->flags.is_pcie > 0); #endif +#endif } static const unsigned int CLK_SRC_MASK = ((1 << 13) | (1 << 12) | (1 << 1));