Skip to content
Unverified Commit cdfc2e20 authored by Colin Ian King's avatar Colin Ian King Committed by Maxime Ripard
Browse files

clk: sunxi-ng: a80: fix the zero'ing of bits 16 and 18



The zero'ing of bits 16 and 18 is incorrect. Currently the code
is masking with the bitwise-and of BIT(16) & BIT(18) which is
0, so the updated value for val is always zero. Fix this by bitwise
and-ing value with the correct mask that will zero bits 16 and 18.

Addresses-Coverity: (" Suspicious &= or |= constant expression")
Fixes: b8eb71dc ("clk: sunxi-ng: Add A80 CCU")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMaxime Ripard <mripard@kernel.org>
parent afdc74ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment