Skip to content

Commit 1c1ec64

Browse files
committed
drivers: clock_control: npcm: fix clock_control_off
Align code with the comment :) There apparently was a copy-paste issue from the clock_control_on code. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent d751dc8 commit 1c1ec64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clock_control/clock_control_npcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ static inline int npcm_clock_control_off(const struct device *dev,
240240

241241
/* Set related PD (Power-Down) bit of module to turn off clock */
242242
NPCM_PWDWN_CTL(pmc_base, NPCM_CLOCK_REG_OFFSET(priv->clock_id)) |=
243-
~(BIT(NPCM_CLOCK_REG_BIT_OFFSET(priv->clock_id)));
243+
(BIT(NPCM_CLOCK_REG_BIT_OFFSET(priv->clock_id)));
244244
return 0;
245245
}
246246

0 commit comments

Comments
 (0)