diff options
author | Mark Johnston <markj@FreeBSD.org> | 2021-04-12 13:32:21 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2021-04-19 13:02:09 +0000 |
commit | 5b8039d5ed3e390f90a7bf77dd558134a95bc1c1 (patch) | |
tree | 96285f766ccf4b835a30b2a6a6eed588bd7f366e | |
parent | 1d553a9e3a36760a5d366aad07c248570538435f (diff) | |
download | src-5b8039d5ed3e390f90a7bf77dd558134a95bc1c1.tar.gz src-5b8039d5ed3e390f90a7bf77dd558134a95bc1c1.zip |
linuxkpi: Fix pcie_set_readrq()
We were passing a LinuxKPI struct device * to a pci(4) function that
expects a device_t.
Reviewed by: manu, hselasky, bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29675
(cherry picked from commit 3f322b22e02d6aae147e9948ab50ca1bee9a9dd4)
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index ddb3f0b222a5..4c07edebc796 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -736,7 +736,7 @@ lkpi_pci_restore_state(struct pci_dev *pdev) /* XXX This should not be necessary. */ #define pcix_set_mmrbc(d, v) 0 #define pcix_get_max_mmrbc(d) 0 -#define pcie_set_readrq(d, v) pci_set_max_read_req(&(d)->dev, (v)) +#define pcie_set_readrq(d, v) pci_set_max_read_req((d)->dev.bsddev, (v)) #define PCI_DMA_BIDIRECTIONAL 0 #define PCI_DMA_TODEVICE 1 |