summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-composite.c
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2020-07-30 04:22:49 +0300
committerShawn Guo <shawnguo@kernel.org>2020-08-22 07:37:18 +0300
commit0d03f0292659456f5a6322ff605253b8ce4b8d52 (patch)
tree820a67e2a12430345c59fc7ac254ba1e9faa6079 /drivers/clk/clk-composite.c
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff)
downloadlinux-0d03f0292659456f5a6322ff605253b8ce4b8d52.tar.xz
clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits
Use readl_relaxed() instead of __raw_readl(), and use BIT(x) instead of (1 << X) to fix below build warning reported by kernel test robot: drivers/clk/imx/clk-imx6sl.c:149:49: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] while (!(__raw_readl(anatop_base + PLL_ARM) & BM_PLL_ARM_LOCK)) Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/clk/clk-composite.c')
0 files changed, 0 insertions, 0 deletions