mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
LinuxKPI: add pci_err()
Add pci_err() as a wrapper to dev_err() as needed by an updated driver. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D46660
This commit is contained in:
parent
7728586800
commit
01e1131e4a
1 changed files with 3 additions and 0 deletions
|
|
@ -367,6 +367,9 @@ struct msi_desc *lkpi_pci_msi_desc_alloc(int);
|
|||
struct device *lkpi_pci_find_irq_dev(unsigned int irq);
|
||||
int _lkpi_pci_enable_msi_range(struct pci_dev *pdev, int minvec, int maxvec);
|
||||
|
||||
#define pci_err(pdev, fmt, ...) \
|
||||
dev_err(&(pdev)->dev, fmt, __VA_ARGS__)
|
||||
|
||||
static inline bool
|
||||
dev_is_pci(struct device *dev)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue