diff options
author | Subrata Banik <subrata.banik@intel.com> | 2020-09-05 14:03:31 +0530 |
---|---|---|
committer | Subrata Banik <subrata.banik@intel.com> | 2020-09-11 03:13:17 +0000 |
commit | 86e53267c405e817bbda7d8c8f55c2a52fac6953 (patch) | |
tree | 8e1f7581c838a7ca18723ca9521ca17393453917 /src/include/device/pci.h | |
parent | a903ea8d623b5ab9dbf1becccfe1215c1ff68418 (diff) |
device: Fix incompatible-pointer-types build error
The build error `incompatible-pointer-types` occurs while using
`pci_dev_request_bus_master` as part of device ops
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Change-Id: I3b1ce85b8db1ddf9ac860415edbe64694b91b3d1
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45122
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/device/pci.h')
-rw-r--r-- | src/include/device/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/device/pci.h b/src/include/device/pci.h index ec3d45e58b..6e28cb7f64 100644 --- a/src/include/device/pci.h +++ b/src/include/device/pci.h @@ -133,7 +133,7 @@ static __always_inline #if ENV_PCI_SIMPLE_DEVICE void pci_dev_request_bus_master(pci_devfn_t dev) #else -void pci_dev_request_bus_master(const struct device *dev) +void pci_dev_request_bus_master(struct device *dev) #endif /* ENV_PCI_SIMPLE_DEVICE */ { if (CONFIG(PCI_ALLOW_BUS_MASTER)) |