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 <sruffell@digium.com>
This commit is contained in:
parent
5ec9d756aa
commit
acfec5dfbb
@ -122,11 +122,15 @@ struct wcxb_meta_desc {
|
|||||||
|
|
||||||
static inline bool wcxb_is_pcie(const struct wcxb *xb)
|
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
|
#ifndef WCXB_PCI_DEV_DOES_NOT_HAVE_IS_PCIE
|
||||||
return (xb->pdev->is_pcie > 0);
|
return (xb->pdev->is_pcie > 0);
|
||||||
#else
|
#else
|
||||||
return (xb->flags.is_pcie > 0);
|
return (xb->flags.is_pcie > 0);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static const unsigned int CLK_SRC_MASK = ((1 << 13) | (1 << 12) | (1 << 1));
|
static const unsigned int CLK_SRC_MASK = ((1 << 13) | (1 << 12) | (1 << 1));
|
||||||
|
Loading…
Reference in New Issue
Block a user