Skip to content

Commit a7756f2

Browse files
pdgendtkartben
authored andcommitted
drivers: pcie: host: Place API into iterable section
Add wrapper DEVICE_API macro to all pcie_ctrl_driver_api instances. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 6cc18fc commit a7756f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pcie/host/pcie_ecam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ static uint8_t pcie_ecam_msi_device_setup(const struct device *dev, unsigned int
370370
}
371371
#endif
372372

373-
static const struct pcie_ctrl_driver_api pcie_ecam_api = {
373+
static DEVICE_API(pcie_ctrl, pcie_ecam_api) = {
374374
.conf_read = pcie_ecam_ctrl_conf_read,
375375
.conf_write = pcie_ecam_ctrl_conf_write,
376376
.region_allocate = pcie_ecam_region_allocate,

0 commit comments

Comments
 (0)