Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clk: rockchip: protect register macros against multipart values
The macros calculate the correct offset from the id in the parameter. If this parameter does not consist of a single number, the calculation will return wrong registers in the best case or create unaligned accesses in the worst case. So protect the calculations against such values. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
- Loading branch information