Skip to content

Commit 6c6d352

Browse files
pdgendtdanieldegrasse
authored andcommitted
drivers: sdhc: Place device APIs in linker sections
Use DEVICE_API macro to place driver API instances into a linker section. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent d4139d3 commit 6c6d352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sdhc/xlnx_sdhc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ static int xlnx_sdhc_init(const struct device *dev)
12941294
return xlnx_sdhc_host_reset(dev);
12951295
}
12961296

1297-
static const struct sdhc_driver_api xlnx_sdhc_api = {
1297+
static DEVICE_API(sdhc, xlnx_sdhc_api) = {
12981298
.reset = xlnx_sdhc_host_reset,
12991299
.request = xlnx_sdhc_request,
13001300
.set_io = xlnx_sdhc_set_io,

0 commit comments

Comments
 (0)