Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: stm32mp1: remove unnecessary CLK_DIVIDER_ALLOW_ZERO flag

The divisor of ethptp_k and ck_hse_rtc clocks is: 'value register
plus one'.
Then CLK_DIVIDER_ALLOW_ZERO flag has no effect and is useless here.

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Gabriel Fernandez and committed by
Stephen Boyd
f9b76fd2 d3f2e33c

+2 -3
+2 -3
drivers/clk/clk-stm32mp1.c
··· 1959 1959 CLK_SET_RATE_NO_REPARENT, 1960 1960 _NO_GATE, 1961 1961 _MMUX(M_ETHCK), 1962 - _DIV(RCC_ETHCKSELR, 4, 4, CLK_DIVIDER_ALLOW_ZERO, NULL)), 1962 + _DIV(RCC_ETHCKSELR, 4, 4, 0, NULL)), 1963 1963 1964 1964 /* RTC clock */ 1965 - DIV(NO_ID, "ck_hse_rtc", "ck_hse", 0, RCC_RTCDIVR, 0, 7, 1966 - CLK_DIVIDER_ALLOW_ZERO), 1965 + DIV(NO_ID, "ck_hse_rtc", "ck_hse", 0, RCC_RTCDIVR, 0, 7, 0), 1967 1966 1968 1967 COMPOSITE(RTC, "ck_rtc", rtc_src, CLK_OPS_PARENT_ENABLE | 1969 1968 CLK_SET_RATE_PARENT,