Skip to content

Commit 00fd580

Browse files
Alain Volmatkartben
authored andcommitted
drivers: mbox: stm32-hsem: correct clock_control_subsys_t cast
Correct the clock_control_subsys_t cast in calls of the clock_control_ framework. Signed-off-by: Alain Volmat <[email protected]>
1 parent c927d9e commit 00fd580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mbox/mbox_stm32_hsem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static int mbox_stm32_clock_init(const struct device *dev)
207207
return -ENODEV;
208208
}
209209

210-
if (clock_control_on(clk, (clock_control_subsys_t *)&cfg->pclken) != 0) {
210+
if (clock_control_on(clk, (clock_control_subsys_t)&cfg->pclken) != 0) {
211211
LOG_WRN("Failed to enable clock.");
212212
return -EIO;
213213
}

0 commit comments

Comments
 (0)