Skip to content

Commit 2afd255

Browse files
committed
drivers: disk: sdmmc_stm32: fix clock pointer ref
Provide a pointer to the first element of the clock list explicitly (as done by `stm32_sdmmc_clock_enable`), instead of a pointer to the list. Signed-off-by: Jordan Yates <[email protected]>
1 parent ea29907 commit 2afd255

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/disk/sdmmc_stm32.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ static int stm32_sdmmc_clock_disable(struct stm32_sdmmc_priv *priv)
177177

178178
clock = DEVICE_DT_GET(STM32_CLOCK_CONTROL_NODE);
179179

180-
return clock_control_off(clock,
181-
(clock_control_subsys_t)&priv->pclken);
180+
return clock_control_off(clock, (clock_control_subsys_t)&priv->pclken[0]);
182181
}
183182
#endif
184183

0 commit comments

Comments
 (0)